I'm confused with the locations of attributes for the function result. I believe they come "before the result type".
Details
Details
Diff Detail
Diff Detail
Event Timeline
llvm/docs/LangRef.rst | ||
---|---|---|
1102 | You are right that attributes for the result come before the return type, but the example attributes this listed are actually function attributes, not return value attributes. So you might want to adjust then to something like nonnull and signext. |
Comment Actions
change examples also
llvm/docs/LangRef.rst | ||
---|---|---|
1102 | Oh, thanks! I should have checked it also! |
You are right that attributes for the result come before the return type, but the example attributes this listed are actually function attributes, not return value attributes. So you might want to adjust then to something like nonnull and signext.