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:
parent
984c952355
commit
bbfedfe1f0
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user