Most of the LLVM IR instructions come in the form of just an opcode followed by operands, but some introduce an extra to keyword, e.g. zext is called as follows:
%X = zext i32 257 to i64
Details
As discussed in the compiler skeleton PR, this naming duality make the instructions-to-polyfills mapping more complex without adding any benefits. Remove the to keyword from polyfill names. Affected instructions: trunc, zext, sext, ptrtoint, inttoptr, bitcast.
Summary
Most of the LLVM IR instructions come in the form of just an opcode followed by operands, but some introduce an extra
to
keyword, e.g.zext
is called as follows:Details
As discussed in the compiler skeleton PR, this naming duality make the instructions-to-polyfills mapping more complex without adding any benefits. Remove the
to
keyword from polyfill names. Affected instructions:trunc
,zext
,sext
,ptrtoint
,inttoptr
,bitcast
.Checklist