llvm-project
fcc78673 - [Clang][bytecode] interp__builtin_elementwise_int_binop - use APSInt callback instead of repeated switch statement (#155891)

Commit
180 days ago
[Clang][bytecode] interp__builtin_elementwise_int_binop - use APSInt callback instead of repeated switch statement (#155891) Users of interp__builtin_elementwise_int_binop are going to be very well defined, we can use a simple callback mechanism (including existing llvm::APIntOps static methods) to perform the evaluation and avoid a repeated switch statement. Hopefully this will help keep interp__builtin_elementwise_int_binop clean as we add more uses
Author
Parents
Loading