[TargetLowering] Extend bool args to inline-asm according to getBooleanType
authorKees Cook <keescook@google.com>
Wed, 22 May 2019 16:16:15 +0000 (16:16 +0000)
committerKees Cook <keescook@google.com>
Wed, 22 May 2019 16:16:15 +0000 (16:16 +0000)
commitc2187c20a461c19ff50dc358b932c44f2ef5d6c6
treef05dfc1070aac8cd4e1f1fabbf62d4c54d12e86a
parenta7a687e500042f078c8a0f6ca0e947e93af4de5f
[TargetLowering] Extend bool args to inline-asm according to getBooleanType

Summary:
This extends Krzysztof Parzyszek's X86-specific solution
(https://reviews.llvm.org/D60208) to the generic code pointed out by
James Y Knight.

Reviewers: kparzysz, craig.topper, nickdesaulniers

Subscribers: efriedma, sdardis, nemanjai, javed.absar, eraman, fedor.sergeev, asb, rbar, johnrusso, simoncook, apazos, sabuasal, niosHD, jrtc27, zzheng, edward-jones, atanasyan, rogfer01, MartinMosbeck, brucehoult, the_o, PkmX, jocewei, jsji, llvm-commits, srhines, void, nickdesaulniers, jyknight

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D60224

llvm-svn: 361404
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/test/CodeGen/AArch64/inline-asm-i-constraint-i1.ll [new file with mode: 0644]
llvm/test/CodeGen/ARM/inline-asm-i-constraint-i1.ll [new file with mode: 0644]
llvm/test/CodeGen/Mips/inline-asm-i-constraint-i1.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/inline-asm-i-constraint-i1.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/inline-asm-i-constraint-i1.ll [new file with mode: 0644]
llvm/test/CodeGen/SPARC/inline-asm-i-constraint-i1.ll [new file with mode: 0644]
llvm/test/CodeGen/SystemZ/inline-asm-i-constraint-i1.ll [new file with mode: 0644]
llvm/test/CodeGen/Thumb/inline-asm-i-constraint-i1.ll [new file with mode: 0644]
llvm/test/CodeGen/Thumb2/inline-asm-i-constraint-i1.ll [new file with mode: 0644]