summaryrefslogtreecommitdiffstats
path: root/clang/utils/TestUtils/deep-stack.py
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2014-01-16 21:44:34 +0000
committerQuentin Colombet <qcolombet@apple.com>2014-01-16 21:44:34 +0000
commitdc0b2ea2bcd91a3c4a1cff81f04d8b589bf50b63 (patch)
treebd8ea5b420bb35e6b73256afc9c384b0dfca5e01 /clang/utils/TestUtils/deep-stack.py
parent40fdf5fee65f17f6bf836553860a8a977966e5c1 (diff)
downloadbcm5719-llvm-dc0b2ea2bcd91a3c4a1cff81f04d8b589bf50b63.tar.gz
bcm5719-llvm-dc0b2ea2bcd91a3c4a1cff81f04d8b589bf50b63.zip
[opt][PassInfo] Allow opt to run passes that need target machine.
When registering a pass, a pass can now specify a second construct that takes as argument a pointer to TargetMachine. The PassInfo class has been updated to reflect that possibility. If such a constructor exists opt will use it instead of the default constructor when instantiating the pass. Since such IR passes are supposed to be rare, no specific support has been added to this commit to allow an easy registration of such a pass. In other words, for such pass, the initialization function has to be hand-written (see CodeGenPrepare for instance). Now, codegenprepare can be tested using opt: opt -codegenprepare -mtriple=mytriple input.ll llvm-svn: 199430
Diffstat (limited to 'clang/utils/TestUtils/deep-stack.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud