[clang] 212f14f - [CIR] Change 'CIR-int' to use a 'APIntParameter' argument (#136713)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 22 08:48:00 PDT 2025
Author: Erich Keane
Date: 2025-04-22T08:47:55-07:00
New Revision: 212f14fbc26e71b26d3345b272b97f22c9df4725
URL: https://github.com/llvm/llvm-project/commit/212f14fbc26e71b26d3345b272b97f22c9df4725
DIFF: https://github.com/llvm/llvm-project/commit/212f14fbc26e71b26d3345b272b97f22c9df4725.diff
LOG: [CIR] Change 'CIR-int' to use a 'APIntParameter' argument (#136713)
After 4bcc414af3782c333 an APInt parameter diagnoses, so this switches
us to APIntParameter.
I don't believe we need to put this in the incubator, as it'll get this
in the same
pulldown as the diagnostic.
Added:
Modified:
clang/include/clang/CIR/Dialect/IR/CIRAttrs.td
Removed:
################################################################################
diff --git a/clang/include/clang/CIR/Dialect/IR/CIRAttrs.td b/clang/include/clang/CIR/Dialect/IR/CIRAttrs.td
index dfe15a10fa54e..293b83e70eff7 100644
--- a/clang/include/clang/CIR/Dialect/IR/CIRAttrs.td
+++ b/clang/include/clang/CIR/Dialect/IR/CIRAttrs.td
@@ -114,7 +114,7 @@ def IntAttr : CIR_Attr<"Int", "int", [TypedAttrInterface]> {
value of the specified integer type.
}];
let parameters = (ins AttributeSelfTypeParameter<"">:$type,
- "llvm::APInt":$value);
+ APIntParameter<"">:$value);
let builders = [
AttrBuilderWithInferredContext<(ins "mlir::Type":$type,
"const llvm::APInt &":$value), [{
More information about the cfe-commits
mailing list