[Mlir-commits] [mlir] [mlir][llvm] Implement ConstantLike for ZeroOp, UndefOp, PoisonOp (PR #93690)

Markus Böck llvmlistbot at llvm.org
Wed May 29 07:54:38 PDT 2024


================
@@ -1037,4 +1037,28 @@ def LLVM_TargetFeaturesAttr : LLVM_Attr<"TargetFeatures", "target_features">
   let genVerifyDecl = 1;
 }
 
+//===----------------------------------------------------------------------===//
+// UndefAttr
+//===----------------------------------------------------------------------===//
+
+/// Folded into from LLVM::UndefOp.
+def LLVM_UndefAttr : LLVM_Attr<"Undef", "undef"> {
+}
----------------
zero9178 wrote:

```suggestion
def LLVM_UndefAttr : LLVM_Attr<"Undef", "undef">;
```
Same below

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


More information about the Mlir-commits mailing list