enum IRPosition::Kind
Description
The positions we distinguish in the IR. The values are chosen such that the KindOrArgNo member has a value >= 1 if it is an argument or call site argument while a value < 1 indicates the respective kind of that value.
Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:153
Enumerators
Name | Value | Comment |
---|---|---|
IRP_INVALID | -6 | An invalid position. |
IRP_FLOAT | -5 | A position that is not associated with a spot suitable for attributes. This could be any value or instruction. |
IRP_RETURNED | -4 | An attribute for the function return value. |
IRP_CALL_SITE_RETURNED | -3 | An attribute for a call site return value. |
IRP_FUNCTION | -2 | An attribute for a function (scope). |
IRP_CALL_SITE | -1 | An attribute for a call site (function scope). |
IRP_ARGUMENT | 0 | An attribute for a function argument. |
IRP_CALL_SITE_ARGUMENT | 1 | An attribute for a call site argument. |