================
@@ -61,6 +64,13 @@ class CIRGenTypes {
 
   /// Convert a Clang type into a mlir::Type.
   mlir::Type convertType(clang::QualType type);
+
+  /// Convert type T into an mlir::Type. This differs from convertType in that
+  /// it is used to convert to the memory representation for a type. For
+  /// example, the scalar representation for bool is i1, but the memory
+  /// representation is usually i8 or i32, depending on the target.
----------------
andykaylor wrote:

When is the memory type used in ClangIR? Given the target-dependence, it seems 
like we'd at least want this deferred until the lowering phase.

https://github.com/llvm/llvm-project/pull/127674
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to