diff options
author | Dan Gohman <gohman@apple.com> | 2010-05-03 23:36:34 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-05-03 23:36:34 +0000 |
commit | 1fdc614bee2a324fcc210d1e46d9b6fca3ca324b (patch) | |
tree | 0f638ff5229a8b966d57b7c527dbdb327aaed823 /include/llvm/CodeGen/FastISel.h | |
parent | 08673d295056c93628973c5c54724ac294faef88 (diff) | |
download | llvm-1fdc614bee2a324fcc210d1e46d9b6fca3ca324b.tar.gz llvm-1fdc614bee2a324fcc210d1e46d9b6fca3ca324b.tar.bz2 llvm-1fdc614bee2a324fcc210d1e46d9b6fca3ca324b.tar.xz |
Factor out FastISel's code for materializing constants and other values
in registers into a separate function to de-couple it from the
top-down-specific logic in getRegForValue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102975 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/FastISel.h')
-rw-r--r-- | include/llvm/CodeGen/FastISel.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/FastISel.h b/include/llvm/CodeGen/FastISel.h index 2eb2df2f60..5a2b0e7c76 100644 --- a/include/llvm/CodeGen/FastISel.h +++ b/include/llvm/CodeGen/FastISel.h @@ -311,6 +311,11 @@ private: /// might result in multiple MBB's for one BB. As such, the start of the /// BB might correspond to a different MBB than the end. bool HandlePHINodesInSuccessorBlocks(const BasicBlock *LLVMBB); + + /// materializeRegForValue - Helper for getRegForVale. This function is + /// called when the value isn't already available in a register and must + /// be materialized with new instructions. + unsigned materializeRegForValue(const Value *V, MVT VT); }; } |