Skip to content

Commit 92a30ec

Browse files
committed
Half -> TwoByte
1 parent d9517fb commit 92a30ec

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

llvm/include/llvm/CodeGen/SelectionDAGISel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class SelectionDAGISel : public MachineFunctionPass {
207207
OPC_EmitCopyToReg5,
208208
OPC_EmitCopyToReg6,
209209
OPC_EmitCopyToReg7,
210-
OPC_EmitCopyToRegHalf,
210+
OPC_EmitCopyToRegTwoByte,
211211
OPC_EmitNodeXForm,
212212
OPC_EmitNode,
213213
// Space-optimized forms that implicitly encode number of result VTs.

llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3618,14 +3618,14 @@ void SelectionDAGISel::SelectCodeCommon(SDNode *NodeToMatch,
36183618
case OPC_EmitCopyToReg5:
36193619
case OPC_EmitCopyToReg6:
36203620
case OPC_EmitCopyToReg7:
3621-
case OPC_EmitCopyToRegHalf: {
3621+
case OPC_EmitCopyToRegTwoByte: {
36223622
unsigned RecNo =
36233623
Opcode >= OPC_EmitCopyToReg0 && Opcode <= OPC_EmitCopyToReg7
36243624
? Opcode - OPC_EmitCopyToReg0
36253625
: MatcherTable[MatcherIndex++];
36263626
assert(RecNo < RecordedNodes.size() && "Invalid EmitCopyToReg");
36273627
unsigned DestPhysReg = MatcherTable[MatcherIndex++];
3628-
if (Opcode == OPC_EmitCopyToRegHalf)
3628+
if (Opcode == OPC_EmitCopyToRegTwoByte)
36293629
DestPhysReg |= MatcherTable[MatcherIndex++] << 8;
36303630

36313631
if (!InputChain.getNode())

llvm/utils/TableGen/DAGISelMatcherEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ EmitMatcher(const Matcher *N, const unsigned Indent, unsigned CurrentIdx,
758758
unsigned Slot = C2RMatcher->getSrcSlot();
759759
if (Reg->EnumValue > 255) {
760760
assert(isUInt<16>(Reg->EnumValue) && "not handled");
761-
OS << "OPC_EmitCopyToRegHalf, " << Slot << ", " << "TARGET_VAL("
761+
OS << "OPC_EmitCopyToRegTwoByte, " << Slot << ", " << "TARGET_VAL("
762762
<< getQualifiedName(Reg->TheDef) << "),\n";
763763
++Bytes;
764764
} else {

0 commit comments

Comments
 (0)