summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-01-14 01:45:25 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-01-14 01:45:25 +0000
commitb3c18a691ba91bf27c6343da02d2e93d247227d0 (patch)
treec7c92a4b2e0671a99808a44b613949be77aa91d4 /clang/lib/CodeGen/CodeGenModule.cpp
parent4cf362acc17a0e9974f92c43e94dce991dc75c52 (diff)
downloadbcm5719-llvm-b3c18a691ba91bf27c6343da02d2e93d247227d0.tar.gz
bcm5719-llvm-b3c18a691ba91bf27c6343da02d2e93d247227d0.zip
Add TRI::getCallPreservedMask() hook.
The hook returns a bit-mask of call-preserved registers that will eventually replace the current list of implicit defs on call instructions. This will make it possible to support multiple calling conventions without duplicating call instruction descriptors. The call-preserved mask is slightly different from the list returned by the getCalleeSavedRegs() hook, it includes all aliases that are preserved by calls. The hook takes a CallingConv::ID argument instead of a MachineFunction pointer, so it can provide information about calls to extern functions, and even indirect function calls. TRI::getCalleeSavedRegs() returns information about the function currently being compiled. TRI::getCallPreservedMask() returns information about the functions it is calling. llvm-svn: 148165
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud