mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
clean up interface to ValueTypeActions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25783 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
TargetLowering::TargetLowering(TargetMachine &tm)
|
TargetLowering::TargetLowering(TargetMachine &tm)
|
||||||
: TM(tm), TD(TM.getTargetData()), ValueTypeActions(0) {
|
: TM(tm), TD(TM.getTargetData()) {
|
||||||
assert(ISD::BUILTIN_OP_END <= 128 &&
|
assert(ISD::BUILTIN_OP_END <= 128 &&
|
||||||
"Fixed size array in TargetLowering is not large enough!");
|
"Fixed size array in TargetLowering is not large enough!");
|
||||||
// All operations default to being supported.
|
// All operations default to being supported.
|
||||||
@@ -46,8 +46,8 @@ static void SetValueTypeAction(MVT::ValueType VT,
|
|||||||
TargetLowering::LegalizeAction Action,
|
TargetLowering::LegalizeAction Action,
|
||||||
TargetLowering &TLI,
|
TargetLowering &TLI,
|
||||||
MVT::ValueType *TransformToType,
|
MVT::ValueType *TransformToType,
|
||||||
unsigned long long &ValueTypeActions) {
|
TargetLowering::ValueTypeActionImpl &ValueTypeActions) {
|
||||||
ValueTypeActions |= (unsigned long long)Action << (VT*2);
|
ValueTypeActions.setTypeAction(VT, Action);
|
||||||
if (Action == TargetLowering::Promote) {
|
if (Action == TargetLowering::Promote) {
|
||||||
MVT::ValueType PromoteTo;
|
MVT::ValueType PromoteTo;
|
||||||
if (VT == MVT::f32)
|
if (VT == MVT::f32)
|
||||||
|
Reference in New Issue
Block a user