summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Function.cpp
diff options
context:
space:
mode:
authorLuke Drummond <luke.drummond@codeplay.com>2016-06-15 16:19:46 +0000
committerLuke Drummond <luke.drummond@codeplay.com>2016-06-15 16:19:46 +0000
commit9d4842251c0b8406fa0801208bbbe3d365eff6c3 (patch)
tree60085be2c21041ee2099ae704fe699d5cb9c8948 /llvm/lib/IR/Function.cpp
parent194cb55f37ad7a7ec7720945743ad3659994c7de (diff)
downloadbcm5719-llvm-9d4842251c0b8406fa0801208bbbe3d365eff6c3.tar.gz
bcm5719-llvm-9d4842251c0b8406fa0801208bbbe3d365eff6c3.zip
Allow runtimes to execute custom LLVM ModulePasses over the expression IR
During expression evaluation, the ClangExpressionParser preforms a number of hard-coded fixups on the expression's IR before the module is assembled and dispatched to be run in a ThreadPlan. This patch allows the runtimes to register LLVM passes to be run over the generated IR, that they may perform language or architecture-specfic fixups or analyses over the generated expression. This makes expression evaluation for plugins more flexible and allows language-specific fixes to reside in their own module, rather than littering the expression evaluator itself with language-specific fixes. llvm-svn: 272800
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud