-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[MLIR][LLVMIR] llvm.call_intrinsic: support operand/result attributes #129640
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
Changes from all commits
c58a7d0
0cda12b
a3d1122
9e17200
70b631d
4d6f684
d4745ed
7c70731
bbc3b1f
1f0af01
5b93d4d
8e32a80
721254f
cf1eca1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -272,6 +272,11 @@ class ModuleImport { | |
SmallVectorImpl<Value> &valuesOut, | ||
SmallVectorImpl<NamedAttribute> &attrsOut); | ||
|
||
/// Converts the parameter and result attributes in `argsAttr` and `resAttr` | ||
/// and add them to the `callOp`. | ||
void convertParameterAttributes(llvm::CallBase *call, ArrayAttr &argsAttr, | ||
ArrayAttr &resAttr, OpBuilder &builder); | ||
|
||
private: | ||
/// Clears the accumulated state before processing a new region. | ||
void clearRegionState() { | ||
|
@@ -350,7 +355,8 @@ class ModuleImport { | |
DictionaryAttr convertParameterAttribute(llvm::AttributeSet llvmParamAttrs, | ||
OpBuilder &builder); | ||
/// Converts the parameter and result attributes attached to `call` and adds | ||
/// them to the `callOp`. | ||
/// them to the `callOp`. Implemented in terms of the the public definition of | ||
/// convertParameterAttributes. | ||
void convertParameterAttributes(llvm::CallBase *call, CallOpInterface callOp, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess this function would be a good use case for a ArgumentAndResultAttributeInterface. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you mean In the future or as part of this PR? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No this is definitely a separate PR. |
||
OpBuilder &builder); | ||
/// Converts the attributes attached to `inst` and adds them to the `op`. | ||
|
Uh oh!
There was an error while loading. Please reload this page.