now that we have a centralized place to do so, add some using declarations for
some common llvm types: stringref and smallvector. This cleans up the codebase quite a bit. llvm-svn: 135576
This commit is contained in:
@@ -353,7 +353,7 @@ private:
|
||||
/// A a;
|
||||
/// foo:
|
||||
/// bar();
|
||||
llvm::SmallVector<BranchFixup, 8> BranchFixups;
|
||||
SmallVector<BranchFixup, 8> BranchFixups;
|
||||
|
||||
char *allocate(size_t Size);
|
||||
|
||||
@@ -681,7 +681,7 @@ public:
|
||||
public:
|
||||
/// ObjCEHValueStack - Stack of Objective-C exception values, used for
|
||||
/// rethrows.
|
||||
llvm::SmallVector<llvm::Value*, 8> ObjCEHValueStack;
|
||||
SmallVector<llvm::Value*, 8> ObjCEHValueStack;
|
||||
|
||||
/// A class controlling the emission of a finally block.
|
||||
class FinallyInfo {
|
||||
@@ -872,7 +872,7 @@ public:
|
||||
/// The given basic block lies in the current EH scope, but may be a
|
||||
/// target of a potentially scope-crossing jump; get a stable handle
|
||||
/// to which we can perform this jump later.
|
||||
JumpDest getJumpDestInCurrentScope(llvm::StringRef Name = llvm::StringRef()) {
|
||||
JumpDest getJumpDestInCurrentScope(StringRef Name = StringRef()) {
|
||||
return getJumpDestInCurrentScope(createBasicBlock(Name));
|
||||
}
|
||||
|
||||
@@ -1089,7 +1089,7 @@ private:
|
||||
JumpDest BreakBlock;
|
||||
JumpDest ContinueBlock;
|
||||
};
|
||||
llvm::SmallVector<BreakContinue, 8> BreakContinueStack;
|
||||
SmallVector<BreakContinue, 8> BreakContinueStack;
|
||||
|
||||
/// SwitchInsn - This is nearest current switch instruction. It is null if if
|
||||
/// current context is not in a switch.
|
||||
@@ -1415,7 +1415,7 @@ public:
|
||||
static bool hasAggregateLLVMType(QualType T);
|
||||
|
||||
/// createBasicBlock - Create an LLVM basic block.
|
||||
llvm::BasicBlock *createBasicBlock(llvm::StringRef name = "",
|
||||
llvm::BasicBlock *createBasicBlock(StringRef name = "",
|
||||
llvm::Function *parent = 0,
|
||||
llvm::BasicBlock *before = 0) {
|
||||
#ifdef NDEBUG
|
||||
@@ -2122,14 +2122,14 @@ public:
|
||||
|
||||
llvm::Value *EmitARMBuiltinExpr(unsigned BuiltinID, const CallExpr *E);
|
||||
llvm::Value *EmitNeonCall(llvm::Function *F,
|
||||
llvm::SmallVectorImpl<llvm::Value*> &O,
|
||||
SmallVectorImpl<llvm::Value*> &O,
|
||||
const char *name,
|
||||
unsigned shift = 0, bool rightshift = false);
|
||||
llvm::Value *EmitNeonSplat(llvm::Value *V, llvm::Constant *Idx);
|
||||
llvm::Value *EmitNeonShiftVector(llvm::Value *V, llvm::Type *Ty,
|
||||
bool negateForRightShift);
|
||||
|
||||
llvm::Value *BuildVector(const llvm::SmallVectorImpl<llvm::Value*> &Ops);
|
||||
llvm::Value *BuildVector(const SmallVectorImpl<llvm::Value*> &Ops);
|
||||
llvm::Value *EmitX86BuiltinExpr(unsigned BuiltinID, const CallExpr *E);
|
||||
llvm::Value *EmitPPCBuiltinExpr(unsigned BuiltinID, const CallExpr *E);
|
||||
|
||||
@@ -2370,7 +2370,7 @@ private:
|
||||
/// Ty, into individual arguments on the provided vector \arg Args. See
|
||||
/// ABIArgInfo::Expand.
|
||||
void ExpandTypeToArgs(QualType Ty, RValue Src,
|
||||
llvm::SmallVector<llvm::Value*, 16> &Args,
|
||||
SmallVector<llvm::Value*, 16> &Args,
|
||||
llvm::FunctionType *IRFuncTy);
|
||||
|
||||
llvm::Value* EmitAsmInput(const AsmStmt &S,
|
||||
|
||||
Reference in New Issue
Block a user