mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 04:24:00 +00:00
Style and formatting fixes for r229715
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229758 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -95,8 +95,7 @@ struct ClonedCodeInfo {
|
|||||||
/// function, you can specify a ClonedCodeInfo object with the optional fifth
|
/// function, you can specify a ClonedCodeInfo object with the optional fifth
|
||||||
/// parameter.
|
/// parameter.
|
||||||
///
|
///
|
||||||
BasicBlock *CloneBasicBlock(const BasicBlock *BB,
|
BasicBlock *CloneBasicBlock(const BasicBlock *BB, ValueToValueMapTy &VMap,
|
||||||
ValueToValueMapTy &VMap,
|
|
||||||
const Twine &NameSuffix = "", Function *F = nullptr,
|
const Twine &NameSuffix = "", Function *F = nullptr,
|
||||||
ClonedCodeInfo *CodeInfo = nullptr);
|
ClonedCodeInfo *CodeInfo = nullptr);
|
||||||
|
|
||||||
@ -112,8 +111,7 @@ BasicBlock *CloneBasicBlock(const BasicBlock *BB,
|
|||||||
/// If ModuleLevelChanges is false, VMap contains no non-identity GlobalValue
|
/// If ModuleLevelChanges is false, VMap contains no non-identity GlobalValue
|
||||||
/// mappings, and debug info metadata will not be cloned.
|
/// mappings, and debug info metadata will not be cloned.
|
||||||
///
|
///
|
||||||
Function *CloneFunction(const Function *F,
|
Function *CloneFunction(const Function *F, ValueToValueMapTy &VMap,
|
||||||
ValueToValueMapTy &VMap,
|
|
||||||
bool ModuleLevelChanges,
|
bool ModuleLevelChanges,
|
||||||
ClonedCodeInfo *CodeInfo = nullptr);
|
ClonedCodeInfo *CodeInfo = nullptr);
|
||||||
|
|
||||||
@ -127,8 +125,7 @@ Function *CloneFunction(const Function *F,
|
|||||||
/// mappings.
|
/// mappings.
|
||||||
///
|
///
|
||||||
void CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
|
void CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
|
||||||
ValueToValueMapTy &VMap,
|
ValueToValueMapTy &VMap, bool ModuleLevelChanges,
|
||||||
bool ModuleLevelChanges,
|
|
||||||
SmallVectorImpl<ReturnInst*> &Returns,
|
SmallVectorImpl<ReturnInst*> &Returns,
|
||||||
const char *NameSuffix = "",
|
const char *NameSuffix = "",
|
||||||
ClonedCodeInfo *CodeInfo = nullptr,
|
ClonedCodeInfo *CodeInfo = nullptr,
|
||||||
@ -150,19 +147,17 @@ public:
|
|||||||
StopCloningBB
|
StopCloningBB
|
||||||
};
|
};
|
||||||
|
|
||||||
CloningDirector() {}
|
virtual ~CloningDirector() = default;
|
||||||
virtual ~CloningDirector() {}
|
|
||||||
|
|
||||||
/// Subclasses must override this function to customize cloning behavior.
|
/// Subclasses must override this function to customize cloning behavior.
|
||||||
virtual CloningAction handleInstruction(ValueToValueMapTy &VMap,
|
virtual CloningAction handleInstruction(ValueToValueMapTy &VMap,
|
||||||
const Instruction *Inst,
|
const Instruction *Inst,
|
||||||
BasicBlock *NewBB) = 0;
|
BasicBlock *NewBB) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
void CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc,
|
void CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc,
|
||||||
const Instruction *StartingInst,
|
const Instruction *StartingInst,
|
||||||
ValueToValueMapTy &VMap,
|
ValueToValueMapTy &VMap, bool ModuleLevelChanges,
|
||||||
bool ModuleLevelChanges,
|
|
||||||
SmallVectorImpl<ReturnInst*> &Returns,
|
SmallVectorImpl<ReturnInst*> &Returns,
|
||||||
const char *NameSuffix = "",
|
const char *NameSuffix = "",
|
||||||
ClonedCodeInfo *CodeInfo = nullptr,
|
ClonedCodeInfo *CodeInfo = nullptr,
|
||||||
@ -182,8 +177,7 @@ void CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc,
|
|||||||
/// mappings.
|
/// mappings.
|
||||||
///
|
///
|
||||||
void CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc,
|
void CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc,
|
||||||
ValueToValueMapTy &VMap,
|
ValueToValueMapTy &VMap, bool ModuleLevelChanges,
|
||||||
bool ModuleLevelChanges,
|
|
||||||
SmallVectorImpl<ReturnInst*> &Returns,
|
SmallVectorImpl<ReturnInst*> &Returns,
|
||||||
const char *NameSuffix = "",
|
const char *NameSuffix = "",
|
||||||
ClonedCodeInfo *CodeInfo = nullptr,
|
ClonedCodeInfo *CodeInfo = nullptr,
|
||||||
@ -209,7 +203,7 @@ public:
|
|||||||
|
|
||||||
/// StaticAllocas - InlineFunction fills this in with all static allocas that
|
/// StaticAllocas - InlineFunction fills this in with all static allocas that
|
||||||
/// get copied into the caller.
|
/// get copied into the caller.
|
||||||
SmallVector<AllocaInst*, 4> StaticAllocas;
|
SmallVector<AllocaInst *, 4> StaticAllocas;
|
||||||
|
|
||||||
/// InlinedCalls - InlineFunction fills this in with callsites that were
|
/// InlinedCalls - InlineFunction fills this in with callsites that were
|
||||||
/// inlined from the callee. This is only filled in if CG is non-null.
|
/// inlined from the callee. This is only filled in if CG is non-null.
|
||||||
@ -231,9 +225,12 @@ public:
|
|||||||
/// exists in the instruction stream. Similarly this will inline a recursive
|
/// exists in the instruction stream. Similarly this will inline a recursive
|
||||||
/// function by one level.
|
/// function by one level.
|
||||||
///
|
///
|
||||||
bool InlineFunction(CallInst *C, InlineFunctionInfo &IFI, bool InsertLifetime = true);
|
bool InlineFunction(CallInst *C, InlineFunctionInfo &IFI,
|
||||||
bool InlineFunction(InvokeInst *II, InlineFunctionInfo &IFI, bool InsertLifetime = true);
|
bool InsertLifetime = true);
|
||||||
bool InlineFunction(CallSite CS, InlineFunctionInfo &IFI, bool InsertLifetime = true);
|
bool InlineFunction(InvokeInst *II, InlineFunctionInfo &IFI,
|
||||||
|
bool InsertLifetime = true);
|
||||||
|
bool InlineFunction(CallSite CS, InlineFunctionInfo &IFI,
|
||||||
|
bool InsertLifetime = true);
|
||||||
|
|
||||||
} // End llvm namespace
|
} // End llvm namespace
|
||||||
|
|
||||||
|
@ -64,7 +64,6 @@ public:
|
|||||||
: LPI(LPI), CurrentSelector(Selector->stripPointerCasts()), EHObj(EHObj),
|
: LPI(LPI), CurrentSelector(Selector->stripPointerCasts()), EHObj(EHObj),
|
||||||
SelectorIDType(Type::getInt32Ty(LPI->getContext())),
|
SelectorIDType(Type::getInt32Ty(LPI->getContext())),
|
||||||
Int8PtrType(Type::getInt8PtrTy(LPI->getContext())) {}
|
Int8PtrType(Type::getInt8PtrTy(LPI->getContext())) {}
|
||||||
virtual ~WinEHCatchDirector() {}
|
|
||||||
|
|
||||||
CloningAction handleInstruction(ValueToValueMapTy &VMap,
|
CloningAction handleInstruction(ValueToValueMapTy &VMap,
|
||||||
const Instruction *Inst,
|
const Instruction *Inst,
|
||||||
|
Reference in New Issue
Block a user