aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-29 08:41:12 +0000
committerChris Lattner <sabre@nondot.org>2006-01-29 08:41:12 +0000
commit3e6e8cc26b0f78e7e9164b59aaf7bdead6715127 (patch)
tree6cb82eda375dc8e5d5242a663d10a9ac5212a8ce /lib/CodeGen/SelectionDAG/TargetLowering.cpp
parente3bd778e4dbf6271ef522ba4f7b28499c3819b2a (diff)
clean up interface to ValueTypeActions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25783 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/TargetLowering.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 6b6ac57770..b45ad00e59 100644
--- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -19,7 +19,7 @@
using namespace llvm;
TargetLowering::TargetLowering(TargetMachine &tm)
- : TM(tm), TD(TM.getTargetData()), ValueTypeActions(0) {
+ : TM(tm), TD(TM.getTargetData()) {
assert(ISD::BUILTIN_OP_END <= 128 &&
"Fixed size array in TargetLowering is not large enough!");
// All operations default to being supported.
@@ -46,8 +46,8 @@ static void SetValueTypeAction(MVT::ValueType VT,
TargetLowering::LegalizeAction Action,
TargetLowering &TLI,
MVT::ValueType *TransformToType,
- unsigned long long &ValueTypeActions) {
- ValueTypeActions |= (unsigned long long)Action << (VT*2);
+ TargetLowering::ValueTypeActionImpl &ValueTypeActions) {
+ ValueTypeActions.setTypeAction(VT, Action);
if (Action == TargetLowering::Promote) {
MVT::ValueType PromoteTo;
if (VT == MVT::f32)