1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

[Bitcode] Update naming of UNOP_NEG to UNOP_FNEG

Differential Revision: https://reviews.llvm.org/D68588

llvm-svn: 373958
This commit is contained in:
Cameron McInally 2019-10-07 20:41:25 +00:00
parent 984c952355
commit bbfedfe1f0
3 changed files with 3 additions and 3 deletions

View File

@ -391,7 +391,7 @@ enum CastOpcodes {
/// have no fixed relation to the LLVM IR enum values. Changing these will
/// break compatibility with old files.
enum UnaryOpcodes {
UNOP_NEG = 0
UNOP_FNEG = 0
};
/// BinaryOpcodes - These are values used in the bitcode files to encode which

View File

@ -1063,7 +1063,7 @@ static int getDecodedUnaryOpcode(unsigned Val, Type *Ty) {
switch (Val) {
default:
return -1;
case bitc::UNOP_NEG:
case bitc::UNOP_FNEG:
return IsFP ? Instruction::FNeg : -1;
}
}

View File

@ -520,7 +520,7 @@ static unsigned getEncodedCastOpcode(unsigned Opcode) {
static unsigned getEncodedUnaryOpcode(unsigned Opcode) {
switch (Opcode) {
default: llvm_unreachable("Unknown binary instruction!");
case Instruction::FNeg: return bitc::UNOP_NEG;
case Instruction::FNeg: return bitc::UNOP_FNEG;
}
}