[Mlir-commits] [mlir] [MLIR][LLVM] Implement LLVM dialect support for global aliases (PR #125295)

Christian Ulmann llvmlistbot at llvm.org
Mon Feb 3 23:55:05 PST 2025


================
@@ -1443,6 +1455,85 @@ def LLVM_GlobalDtorsOp : LLVM_Op<"mlir.global_dtors", [
   let hasVerifier = 1;
 }
 
+def LLVM_AliasOp : LLVM_Op<"mlir.alias",
+    [IsolatedFromAbove, SingleBlockImplicitTerminator<"ReturnOp">, Symbol]> {
----------------
Dinistro wrote:

Is there no `SingleBlockWithTerminator` trait? We don't want empty blocks here that return null. Ideally this would be enforceable through a trait already.

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


More information about the Mlir-commits mailing list