search for: r352904

Displaying 1 result from an estimated 1 matches for "r352904".

2019 Feb 05
4
[RFC] Enforcing immediate operands for intrinsics
...ier could then reject invalid intrinsic calls, so code handling the intrinsics doesn’t need to worry about invalid arguments. Currently any code that deals with such intrinsics needs to do type checks on the argument to avoid crashing on valid IR. This isn’t done particularly consistently (e.g. see r352904, or the follow-up r353097 for a recent example fix). From the codegen side, we do things like folding invalid intrinsic calls to undef during custom lowering, which is more boilerplate which shouldn’t be necessary. It’s also necessary in a few some passes to know it’s illegal to replace an argumen...