[PATCH] D76747: [VE] Change name of enum to CondCode
Simon Moll via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 25 01:35:41 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG28a42dd1b9e9: [VE] Change name of enum to CondCode (authored by kaz7, committed by simoll).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76747/new/
https://reviews.llvm.org/D76747
Files:
llvm/lib/Target/VE/MCTargetDesc/VEInstPrinter.cpp
llvm/lib/Target/VE/VE.h
llvm/lib/Target/VE/VEInstrInfo.cpp
llvm/lib/Target/VE/VEInstrInfo.td
Index: llvm/lib/Target/VE/VEInstrInfo.td
===================================================================
--- llvm/lib/Target/VE/VEInstrInfo.td
+++ llvm/lib/Target/VE/VEInstrInfo.td
@@ -83,7 +83,7 @@
}]>;
def icond2cc : SDNodeXForm<cond, [{
- VECC::CondCodes cc;
+ VECC::CondCode cc;
switch (N->get()) {
default: llvm_unreachable("Unknown integer condition code!");
case ISD::SETEQ: cc = VECC::CC_IEQ; break;
@@ -101,7 +101,7 @@
}]>;
def fcond2cc : SDNodeXForm<cond, [{
- VECC::CondCodes cc;
+ VECC::CondCode cc;
switch (N->get()) {
default: llvm_unreachable("Unknown float condition code!");
case ISD::SETFALSE: cc = VECC::CC_AF; break;
Index: llvm/lib/Target/VE/VEInstrInfo.cpp
===================================================================
--- llvm/lib/Target/VE/VEInstrInfo.cpp
+++ llvm/lib/Target/VE/VEInstrInfo.cpp
@@ -40,7 +40,7 @@
static bool IsIntegerCC(unsigned CC) { return (CC < VECC::CC_AF); }
-static VECC::CondCodes GetOppositeBranchCondition(VECC::CondCodes CC) {
+static VECC::CondCode GetOppositeBranchCondition(VECC::CondCode CC) {
switch(CC) {
case VECC::CC_IG: return VECC::CC_ILE;
case VECC::CC_IL: return VECC::CC_IGE;
@@ -268,7 +268,7 @@
bool VEInstrInfo::reverseBranchCondition(
SmallVectorImpl<MachineOperand> &Cond) const {
- VECC::CondCodes CC = static_cast<VECC::CondCodes>(Cond[0].getImm());
+ VECC::CondCode CC = static_cast<VECC::CondCode>(Cond[0].getImm());
Cond[0].setImm(GetOppositeBranchCondition(CC));
return false;
}
Index: llvm/lib/Target/VE/VE.h
===================================================================
--- llvm/lib/Target/VE/VE.h
+++ llvm/lib/Target/VE/VE.h
@@ -37,7 +37,7 @@
// Enums corresponding to VE condition codes, both icc's and fcc's. These
// values must be kept in sync with the ones in the .td file.
namespace VECC {
-enum CondCodes {
+enum CondCode {
// Integer comparison
CC_IG = 0, // Greater
CC_IL = 1, // Less
@@ -66,7 +66,7 @@
};
}
-inline static const char *VECondCodeToString(VECC::CondCodes CC) {
+inline static const char *VECondCodeToString(VECC::CondCode CC) {
switch (CC) {
case VECC::CC_IG: return "gt";
case VECC::CC_IL: return "lt";
Index: llvm/lib/Target/VE/MCTargetDesc/VEInstPrinter.cpp
===================================================================
--- llvm/lib/Target/VE/MCTargetDesc/VEInstPrinter.cpp
+++ llvm/lib/Target/VE/MCTargetDesc/VEInstPrinter.cpp
@@ -113,5 +113,5 @@
void VEInstPrinter::printCCOperand(const MCInst *MI, int opNum,
const MCSubtargetInfo &STI, raw_ostream &O) {
int CC = (int)MI->getOperand(opNum).getImm();
- O << VECondCodeToString((VECC::CondCodes)CC);
+ O << VECondCodeToString((VECC::CondCode)CC);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76747.252514.patch
Type: text/x-patch
Size: 2797 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200325/270b2169/attachment.bin>
More information about the llvm-commits
mailing list