[clang] [CIR] Upstream CastOp and scalar conversions (PR #130690)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 11 13:16:07 PDT 2025
================
@@ -36,6 +36,18 @@ class ScalarExprEmitter : public StmtVisitor<ScalarExprEmitter, mlir::Value> {
bool ira = false)
: cgf(cgf), builder(builder), ignoreResultAssign(ira) {}
+ //===--------------------------------------------------------------------===//
+ // Utilities
+ //===--------------------------------------------------------------------===//
+
+ bool TestAndClearIgnoreResultAssign() {
+ bool i = ignoreResultAssign;
+ ignoreResultAssign = false;
+ return i;
+ }
+
+ mlir::Type convertType(QualType t) { return cgf.convertType(t); }
----------------
andykaylor wrote:
As discussed earlier, let's get rid of wrapper functions like this.
https://github.com/llvm/llvm-project/pull/130690
More information about the cfe-commits
mailing list