Adds argument attributes for using LLVM's sret and byval attributes to the conversion of LLVM IR dialect. These attributes are used in FIR to support the lowering of Fortran using target-specific calling conventions. Add roundtrip tests.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I have two requests:
- use UnitAttr instead of BoolAttr
- add tests for any user-visible error messages
(Potentially for a follow-up, we should check attributes in the op verifier, not in the translation, but I see there are other attributes checked in the translation).
Comment Actions
Sure. The use of BoolAttr was done to be consistent with the "noalias" attribute, fwiw.