[clang] [CIR] Add invariant attribute to cir.load (PR #204283)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 22 09:29:26 PDT 2026


================
@@ -229,11 +229,12 @@ class CIRBaseBuilderTy : public mlir::OpBuilder {
   }
 
   cir::LoadOp createLoad(mlir::Location loc, mlir::Value ptr,
-                         bool isVolatile = false, uint64_t alignment = 0) {
+                         bool isVolatile = false, uint64_t alignment = 0,
+                         bool isInvariant = false) {
----------------
andykaylor wrote:

I don't see any calls where this is anything other than `false`.

https://github.com/llvm/llvm-project/pull/204283


More information about the cfe-commits mailing list