Skip to content

Commit 28a42dd

Browse files
kaz7Simon Moll
authored andcommitted
[VE] Change name of enum to CondCode
Summary: Change enum name for condition codes from CondCodes to CondCode. Reviewers: arsenm, simoll, k-ishizaka Reviewed By: arsenm Subscribers: wdng, hiraditya, llvm-commits Tags: #llvm, #ve Differential Revision: https://reviews.llvm.org/D76747
1 parent 0788acb commit 28a42dd

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

llvm/lib/Target/VE/MCTargetDesc/VEInstPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,5 @@ void VEInstPrinter::printMemASOperand(const MCInst *MI, int opNum,
113113
void VEInstPrinter::printCCOperand(const MCInst *MI, int opNum,
114114
const MCSubtargetInfo &STI, raw_ostream &O) {
115115
int CC = (int)MI->getOperand(opNum).getImm();
116-
O << VECondCodeToString((VECC::CondCodes)CC);
116+
O << VECondCodeToString((VECC::CondCode)CC);
117117
}

llvm/lib/Target/VE/VE.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace llvm {
3737
// Enums corresponding to VE condition codes, both icc's and fcc's. These
3838
// values must be kept in sync with the ones in the .td file.
3939
namespace VECC {
40-
enum CondCodes {
40+
enum CondCode {
4141
// Integer comparison
4242
CC_IG = 0, // Greater
4343
CC_IL = 1, // Less
@@ -66,7 +66,7 @@ enum CondCodes {
6666
};
6767
}
6868

69-
inline static const char *VECondCodeToString(VECC::CondCodes CC) {
69+
inline static const char *VECondCodeToString(VECC::CondCode CC) {
7070
switch (CC) {
7171
case VECC::CC_IG: return "gt";
7272
case VECC::CC_IL: return "lt";

llvm/lib/Target/VE/VEInstrInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ VEInstrInfo::VEInstrInfo(VESubtarget &ST)
4040

4141
static bool IsIntegerCC(unsigned CC) { return (CC < VECC::CC_AF); }
4242

43-
static VECC::CondCodes GetOppositeBranchCondition(VECC::CondCodes CC) {
43+
static VECC::CondCode GetOppositeBranchCondition(VECC::CondCode CC) {
4444
switch(CC) {
4545
case VECC::CC_IG: return VECC::CC_ILE;
4646
case VECC::CC_IL: return VECC::CC_IGE;
@@ -268,7 +268,7 @@ unsigned VEInstrInfo::removeBranch(MachineBasicBlock &MBB,
268268

269269
bool VEInstrInfo::reverseBranchCondition(
270270
SmallVectorImpl<MachineOperand> &Cond) const {
271-
VECC::CondCodes CC = static_cast<VECC::CondCodes>(Cond[0].getImm());
271+
VECC::CondCode CC = static_cast<VECC::CondCode>(Cond[0].getImm());
272272
Cond[0].setImm(GetOppositeBranchCondition(CC));
273273
return false;
274274
}

llvm/lib/Target/VE/VEInstrInfo.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def HI32 : SDNodeXForm<imm, [{
8383
}]>;
8484

8585
def icond2cc : SDNodeXForm<cond, [{
86-
VECC::CondCodes cc;
86+
VECC::CondCode cc;
8787
switch (N->get()) {
8888
default: llvm_unreachable("Unknown integer condition code!");
8989
case ISD::SETEQ: cc = VECC::CC_IEQ; break;
@@ -101,7 +101,7 @@ def icond2cc : SDNodeXForm<cond, [{
101101
}]>;
102102

103103
def fcond2cc : SDNodeXForm<cond, [{
104-
VECC::CondCodes cc;
104+
VECC::CondCode cc;
105105
switch (N->get()) {
106106
default: llvm_unreachable("Unknown float condition code!");
107107
case ISD::SETFALSE: cc = VECC::CC_AF; break;

0 commit comments

Comments
 (0)