OSDN Git Service

[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)
commit40fd3619367e278b17e8c7a7cecc0d661311f984
treefe7777e031c07ef3aebf7de2c5a70bcd4b608359
parent55cec7572ae1a02d2c1931de06d5b2e7c7c95e54
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361404 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/TargetLowering.cpp
test/CodeGen/AArch64/inline-asm-i-constraint-i1.ll [new file with mode: 0644]
test/CodeGen/ARM/inline-asm-i-constraint-i1.ll [new file with mode: 0644]
test/CodeGen/Mips/inline-asm-i-constraint-i1.ll [new file with mode: 0644]
test/CodeGen/PowerPC/inline-asm-i-constraint-i1.ll [new file with mode: 0644]
test/CodeGen/RISCV/inline-asm-i-constraint-i1.ll [new file with mode: 0644]
test/CodeGen/SPARC/inline-asm-i-constraint-i1.ll [new file with mode: 0644]
test/CodeGen/SystemZ/inline-asm-i-constraint-i1.ll [new file with mode: 0644]
test/CodeGen/Thumb/inline-asm-i-constraint-i1.ll [new file with mode: 0644]
test/CodeGen/Thumb2/inline-asm-i-constraint-i1.ll [new file with mode: 0644]