From: Nicolas Geoffray Date: Tue, 15 Apr 2008 08:08:50 +0000 (+0000) Subject: Change Divided flag to Split, as suggested by Evan X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6ccbbd89906157187ac04b2b3237c4aee7acd095;p=oota-llvm.git Change Divided flag to Split, as suggested by Evan git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49715 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index 07e593afb7c..41d1d5d9251 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -1734,8 +1734,8 @@ namespace ISD { static const uint64_t NestOffs = 5; static const uint64_t ByValAlign = 0xFULL << 6; //< Struct alignment static const uint64_t ByValAlignOffs = 6; - static const uint64_t Divided = 1ULL << 10; - static const uint64_t DividedOffs = 10; + static const uint64_t Split = 1ULL << 10; + static const uint64_t SplitOffs = 10; static const uint64_t OrigAlign = 0x1FULL<<27; static const uint64_t OrigAlignOffs = 27; static const uint64_t ByValSize = 0xffffffffULL << 32; //< Struct size @@ -1773,8 +1773,8 @@ namespace ISD { (uint64_t(Log2_32(A) + 1) << ByValAlignOffs); } - bool isDivided() const { return Flags & Divided; } - void setDivided() { Flags |= One << DividedOffs; } + bool isSplit() const { return Flags & Split; } + void setSplit() { Flags |= One << SplitOffs; } unsigned getOrigAlign() const { return (One << ((Flags & OrigAlign) >> OrigAlignOffs)) / 2; diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index f37280895c3..c9b334fc22c 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -4164,7 +4164,7 @@ TargetLowering::LowerArguments(Function &F, SelectionDAG &DAG) { RetVals.push_back(RegisterVT); ISD::ArgFlagsTy MyFlags = Flags; if (NumRegs > 1 && i == 0) - MyFlags.setDivided(); + MyFlags.setSplit(); // if it isn't first piece, alignment must be 1 else if (i > 0) MyFlags.setOrigAlign(1); @@ -4289,7 +4289,7 @@ TargetLowering::LowerCallTo(SDOperand Chain, const Type *RetTy, // if it isn't first piece, alignment must be 1 ISD::ArgFlagsTy MyFlags = Flags; if (NumParts > 1 && i == 0) - MyFlags.setDivided(); + MyFlags.setSplit(); else if (i != 0) MyFlags.setOrigAlign(1); diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index b1643904652..83bea7e11c2 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/lib/Target/PowerPC/PPCISelLowering.cpp @@ -1423,7 +1423,7 @@ PPCTargetLowering::LowerFORMAL_ARGUMENTS(SDOperand Op, ISD::ArgFlagsTy Flags = cast(Op.getOperand(ArgNo+3))->getArgFlags(); // See if next argument requires stack alignment in ELF - bool Align = Flags.isDivided(); + bool Align = Flags.isSplit(); unsigned CurArgOffset = ArgOffset; @@ -1855,7 +1855,7 @@ SDOperand PPCTargetLowering::LowerCALL(SDOperand Op, SelectionDAG &DAG, ISD::ArgFlagsTy Flags = cast(Op.getOperand(5+2*i+1))->getArgFlags(); // See if next argument requires stack alignment in ELF - bool Align = Flags.isDivided(); + bool Align = Flags.isSplit(); // PtrOff will be used to store the current argument to the stack if a // register cannot be found for it.