MachineRegionInfo: Fix pass initialization
authorMatthias Braun <matze@braunis.de>
Sat, 18 Feb 2017 00:41:16 +0000 (00:41 +0000)
committerMatthias Braun <matze@braunis.de>
Sat, 18 Feb 2017 00:41:16 +0000 (00:41 +0000)
commit5e55477ae573dbeeb2c0abbbf3e26d6960423279
treed720e1ea126b3767c3ff128e9bc5eadf2ff88315
parenta39b1ce61f91a2543ee1735fe6f83045ac7c65f4
MachineRegionInfo: Fix pass initialization

- Adapt MachineBasicBlock::getName() to have the same behavior as the IR
  BasicBlock (Value::getName()).
- Add it to lib/CodeGen/CodeGen.cpp::initializeCodeGen so that it is linked in
  the CodeGen library.
- MachineRegionInfoPass's name conflicts with RegionInfoPass's name ("region").
- MachineRegionInfo should depend on MachineDominatorTree,
  MachinePostDominatorTree and MachineDominanceFrontier instead of their
  respective IR versions.
- Since there were no tests for this, add a X86 MIR test.

Patch by Francis Visoiu Mistrih<fvisoiumistrih@apple.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295518 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineBasicBlock.h
lib/CodeGen/CodeGen.cpp
lib/CodeGen/MachineBasicBlock.cpp
lib/CodeGen/MachineRegionInfo.cpp
test/CodeGen/X86/machine-region-info.mir [new file with mode: 0644]