search for: g_intrinisic_

Displaying 2 results from an estimated 2 matches for "g_intrinisic_".

2019 Feb 06
2
[RFC] Enforcing immediate operands for intrinsics
...Int->setOperand(Val, OpIdx); > This is required for correctness, so TTI is not appropriate. Reasonably implementing this would still require adding something in TableGen (which then just brings you back to adding an attribute). I would also like to be able to rely on this for emission of G_INTRINISIC_* instructions in GlobalISel, so that intermediate illegal G_CONSTANT instructions can be avoided -Matt
2019 Feb 05
4
[RFC] Enforcing immediate operands for intrinsics
Hi, I would like to solve the longstanding need for a way to indicate which parameters to an intrinsic are required to be immediates. It should be possible to declare in tablegen which parameters must be a trivial constant, or else the IR is invalid. The verifier could then reject invalid intrinsic calls, so code handling the intrinsics doesn’t need to worry about invalid arguments. Currently