File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -1114,6 +1114,10 @@ class CIRGenFunction : public CIRGenTypeCache {
1114
1114
// / addressed later.
1115
1115
RValue GetUndefRValue (clang::QualType Ty);
1116
1116
1117
+ // / Given a value and its clang type, returns the value casted from its memory
1118
+ // / representation.
1119
+ // / Note: CIR defers most of the special casting to the final lowering passes
1120
+ // / to conserve the high level information.
1117
1121
mlir::Value emitFromMemory (mlir::Value Value, clang::QualType Ty);
1118
1122
1119
1123
mlir::LogicalResult emitAsmStmt (const clang::AsmStmt &S);
@@ -1339,7 +1343,12 @@ class CIRGenFunction : public CIRGenTypeCache {
1339
1343
}
1340
1344
void emitStoreOfScalar (mlir::Value value, LValue lvalue, bool isInit);
1341
1345
1346
+ // / Given a value and its clang type, returns the value casted to its memory
1347
+ // / representation.
1348
+ // / Note: CIR defers most of the special casting to the final lowering passes
1349
+ // / to conserve the high level information.
1342
1350
mlir::Value emitToMemory (mlir::Value Value, clang::QualType Ty);
1351
+
1343
1352
void emitDeclRefExprDbgValue (const DeclRefExpr *E, const APValue &Init);
1344
1353
1345
1354
// / Store the specified rvalue into the specified
Original file line number Diff line number Diff line change @@ -186,7 +186,8 @@ class CIRGenTypes {
186
186
// / convertType in that it is used to convert to the memory representation
187
187
// / for a type. For example, the scalar representation for _Bool is i1, but
188
188
// / the memory representation is usually i8 or i32, depending on the target.
189
- // TODO: convert this comment to account for MLIR's equivalence
189
+ // / Note: CIR defers most of the special conversions to the final lowering
190
+ // / passes to conserve the high level information.
190
191
mlir::Type convertTypeForMem (clang::QualType, bool forBitField = false );
191
192
192
193
// / Get the CIR function type for \arg Info.
You can’t perform that action at this time.
0 commit comments