mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Fix spacing, forward declare order.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194985 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -15,14 +15,14 @@
|
|||||||
#define LLVM_AUTOUPGRADE_H
|
#define LLVM_AUTOUPGRADE_H
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
class CallInst;
|
||||||
class Constant;
|
class Constant;
|
||||||
|
class Function;
|
||||||
|
class Instruction;
|
||||||
class Module;
|
class Module;
|
||||||
class GlobalVariable;
|
class GlobalVariable;
|
||||||
class Function;
|
|
||||||
class CallInst;
|
|
||||||
class Instruction;
|
|
||||||
class Value;
|
|
||||||
class Type;
|
class Type;
|
||||||
|
class Value;
|
||||||
|
|
||||||
/// This is a more granular function that simply checks an intrinsic function
|
/// This is a more granular function that simply checks an intrinsic function
|
||||||
/// for upgrading, and returns true if it requires upgrading. It may return
|
/// for upgrading, and returns true if it requires upgrading. It may return
|
||||||
|
@@ -862,7 +862,7 @@ public:
|
|||||||
static Constant *getPtrToInt(Constant *C, Type *Ty);
|
static Constant *getPtrToInt(Constant *C, Type *Ty);
|
||||||
static Constant *getIntToPtr(Constant *C, Type *Ty);
|
static Constant *getIntToPtr(Constant *C, Type *Ty);
|
||||||
static Constant *getBitCast (Constant *C, Type *Ty);
|
static Constant *getBitCast (Constant *C, Type *Ty);
|
||||||
static Constant *getAddrSpaceCast (Constant *C, Type *Ty);
|
static Constant *getAddrSpaceCast(Constant *C, Type *Ty);
|
||||||
|
|
||||||
static Constant *getNSWNeg(Constant *C) { return getNeg(C, false, true); }
|
static Constant *getNSWNeg(Constant *C) { return getNeg(C, false, true); }
|
||||||
static Constant *getNUWNeg(Constant *C) { return getNeg(C, true, false); }
|
static Constant *getNUWNeg(Constant *C) { return getNeg(C, true, false); }
|
||||||
@@ -1080,8 +1080,8 @@ public:
|
|||||||
/// as this ConstantExpr. The instruction is not linked to any basic block.
|
/// as this ConstantExpr. The instruction is not linked to any basic block.
|
||||||
///
|
///
|
||||||
/// A better approach to this could be to have a constructor for Instruction
|
/// A better approach to this could be to have a constructor for Instruction
|
||||||
/// which would take a ConstantExpr parameter, but that would have spread
|
/// which would take a ConstantExpr parameter, but that would have spread
|
||||||
/// implementation details of ConstantExpr outside of Constants.cpp, which
|
/// implementation details of ConstantExpr outside of Constants.cpp, which
|
||||||
/// would make it harder to remove ConstantExprs altogether.
|
/// would make it harder to remove ConstantExprs altogether.
|
||||||
Instruction *getAsInstruction();
|
Instruction *getAsInstruction();
|
||||||
|
|
||||||
|
@@ -128,7 +128,7 @@ static int GetDecodedCastOpcode(unsigned Val) {
|
|||||||
case bitc::CAST_PTRTOINT: return Instruction::PtrToInt;
|
case bitc::CAST_PTRTOINT: return Instruction::PtrToInt;
|
||||||
case bitc::CAST_INTTOPTR: return Instruction::IntToPtr;
|
case bitc::CAST_INTTOPTR: return Instruction::IntToPtr;
|
||||||
case bitc::CAST_BITCAST : return Instruction::BitCast;
|
case bitc::CAST_BITCAST : return Instruction::BitCast;
|
||||||
case bitc::CAST_ADDRSPACECAST : return Instruction::AddrSpaceCast;
|
case bitc::CAST_ADDRSPACECAST: return Instruction::AddrSpaceCast;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
static int GetDecodedBinaryOpcode(unsigned Val, Type *Ty) {
|
static int GetDecodedBinaryOpcode(unsigned Val, Type *Ty) {
|
||||||
|
@@ -78,7 +78,7 @@ static unsigned GetEncodedCastOpcode(unsigned Opcode) {
|
|||||||
case Instruction::PtrToInt: return bitc::CAST_PTRTOINT;
|
case Instruction::PtrToInt: return bitc::CAST_PTRTOINT;
|
||||||
case Instruction::IntToPtr: return bitc::CAST_INTTOPTR;
|
case Instruction::IntToPtr: return bitc::CAST_INTTOPTR;
|
||||||
case Instruction::BitCast : return bitc::CAST_BITCAST;
|
case Instruction::BitCast : return bitc::CAST_BITCAST;
|
||||||
case Instruction::AddrSpaceCast : return bitc::CAST_ADDRSPACECAST;
|
case Instruction::AddrSpaceCast: return bitc::CAST_ADDRSPACECAST;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user