]> granicus.if.org Git - llvm/commit
[GlobalISel] Add support for address-taken basic blocks
authorKristof Beyls <kristof.beyls@arm.com>
Thu, 5 Jan 2017 13:27:52 +0000 (13:27 +0000)
committerKristof Beyls <kristof.beyls@arm.com>
Thu, 5 Jan 2017 13:27:52 +0000 (13:27 +0000)
commitf7936705bfceb9c6cf46ba7ec5c9eff783c4c605
tree455558e628452b90e3cc1dce7fc85336a9569f90
parentb1151ef50b5423037a18e141ef399f4ceef3cb41
[GlobalISel] Add support for address-taken basic blocks

To make this work, pointers from the MachineBasicBlock to the LLVM-IR-level
basic blocks need to be initialized, as the AsmPrinter uses this link to be
able to print out labels for the basic blocks that are address-taken.

Most of the changes in this commit are about adapting existing tests to include
the basic block name that is now printed out in the MIR format, now that the
name becomes available as the link to the LLVM-IR basic block is initialized.
The relevant test change for the functionality added in this patch are the
added "(address-taken)" strings in
test/CodeGen/AArch64/GlobalISel/arm64-irtranslator.ll.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291105 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalISel/IRTranslator.cpp
test/CodeGen/AArch64/GlobalISel/arm64-irtranslator.ll
test/CodeGen/AArch64/GlobalISel/irtranslator-exceptions.ll
test/CodeGen/X86/GlobalISel/irtranslator-call.ll