Skip to content

Commit b354192

Browse files
abinavpphedgar2017
authored andcommitted
[mlir][LLVM] Define SetImmutableOp
This represents the `setimmutable` yul builtin for evm
1 parent c941ee6 commit b354192

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,12 @@ def LLVM_IntrCallOp : LLVM_Op<"intrcall"> {
880880
// TODO: Implement verifier (and custom asm format?)
881881
}
882882

883+
def LLVM_SetImmutableOp : LLVM_Op<"setimmutable"> {
884+
let summary = "Sets immutable in the runtime object in the EVM target";
885+
let arguments = (ins I<256>:$addr, StrAttr:$name, I<256>:$val);
886+
let assemblyFormat = "$addr `,` $name `,` $val attr-dict";
887+
}
888+
883889
//===----------------------------------------------------------------------===//
884890
// ExtractElementOp
885891
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)