search for: intopc

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

Did you mean: intop
2019 Feb 06
2
[RFC] Enforcing immediate operands for intrinsics
...y. It has to do something to not crash on the IR otherwise, which is part of the problem I’m trying to solve. > > Why not simply add a function to TTI that tells you whether a particular Value is a valid n-th argument to the given intrinsic? > Something like > if (TTI.isValidArgument(IntOpc, Val, OpIdx)) > 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 t...
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