-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[CIR] Change 'CIR-int' to use a 'APIntParameter' argument #136713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
After 4bcc414 an APInt parameter diagnoses, so this switches us to APIntParameter.
@llvm/pr-subscribers-clangir @llvm/pr-subscribers-clang Author: Erich Keane (erichkeane) ChangesAfter 4bcc414 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 Full diff: https://github.com/llvm/llvm-project/pull/136713.diff 1 Files Affected:
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), [{
|
I'm not terribly sure of the implications of this patch, but figured I'd get one up that at least lets us build. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
LGTM |
After 4bcc414 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.
After 4bcc414 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.
After 4bcc414 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.
After 4bcc414 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.