HomeSort by relevance Sort by last modified time
    Searched refs:AI (Results 1 - 25 of 128) sorted by null

1 2 3 4 5 6

  /external/llvm/lib/Transforms/Utils/
InstructionNamer.cpp 35 for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end();
36 AI != AE; ++AI)
37 if (!AI->hasName() && !AI->getType()->isVoidTy())
38 AI->setName("arg");
PromoteMemoryToRegister.cpp 82 bool llvm::isAllocaPromotable(const AllocaInst *AI) {
87 for (Value::const_use_iterator UI = AI->use_begin(), UE = AI->use_end();
96 if (SI->getOperand(0) == AI)
97 return false; // Don't allow a store OF the AI, only INTO the AI.
277 void DetermineInsertionPoint(AllocaInst *AI, unsigned AllocaNum,
279 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info,
283 void RewriteSingleStoreAlloca(AllocaInst *AI, AllocaInfo &Info,
285 void PromoteSingleBlockAlloca(AllocaInst *AI, AllocaInfo &Info
1091 DenseMap<AllocaInst *, unsigned>::iterator ai = AllocaLookup.find(Dest); local
    [all...]
Mem2Reg.cpp 72 if (AllocaInst *AI = dyn_cast<AllocaInst>(I)) // Is it an alloca?
73 if (isAllocaPromotable(AI))
74 Allocas.push_back(AI);
LowerInvoke.cpp 291 for (Function::arg_iterator AI = F->arg_begin(), E = F->arg_end();
292 AI != E; ++AI) {
293 Type *Ty = AI->getType();
298 Instruction *EI = ExtractValueInst::Create(AI, 0, "",AfterAllocaInsertPt);
299 Instruction *NI = InsertValueInst::Create(AI, EI, 0);
301 AI->replaceAllUsesWith(NI);
303 EI->setOperand(0, AI);
304 NI->setOperand(0, AI);
306 // This is always a no-op cast because we're casting AI to AI->getType(
    [all...]
  /external/llvm/include/llvm/Transforms/Utils/
PromoteMemToReg.h 29 bool isAllocaPromotable(const AllocaInst *AI);
  /external/llvm/lib/CodeGen/
MachineCopyPropagation.cpp 65 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) {
66 SourceMap::iterator SI = SrcMap.find(*AI);
179 for (MCRegAliasIterator AI(Src, TRI, true); AI.isValid(); ++AI) {
180 CI = CopyMap.find(*AI);
199 for (MCRegAliasIterator AI(Def, TRI, false); AI.isValid(); ++AI)
    [all...]
RegisterClassInfo.cpp 53 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI)
54 CSRNum[*AI] = N + 1; // 0 means no CSR, 1 means CalleeSaved[0], ...
CriticalAntiDepBreaker.cpp 65 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) {
66 unsigned Reg = *AI;
81 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) {
82 unsigned Reg = *AI;
96 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI)
    [all...]
StackProtector.cpp 151 if (AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
152 if (AI->isArrayAllocation())
157 if (ContainsProtectableArray(AI->getAllocatedType()))
174 AllocaInst *AI = 0; // Place on stack that stores the stack guard.
206 AI = new AllocaInst(PtrTy, "StackGuardSlot", InsPt);
209 Value *Args[] = { LI, AI };
257 LoadInst *LI2 = new LoadInst(AI, "", true, BB);
DeadMachineInstructionElim.cpp 189 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI)
190 LivePhysRegs.set(*AI);
SjLjEHPrepare.cpp 246 AI = F.arg_begin(), AE = F.arg_end(); AI != AE; ++AI) {
247 Type *Ty = AI->getType();
253 Instruction *EI = ExtractValueInst::Create(AI, 0, "", AfterAllocaInsPt);
254 Instruction *NI = InsertValueInst::Create(AI, EI, 0);
256 AI->replaceAllUsesWith(NI);
259 EI->setOperand(0, AI);
260 NI->setOperand(0, AI);
262 // This is always a no-op cast because we're casting AI to AI->getType(
    [all...]
MachineRegisterInfo.cpp 316 for (MCRegAliasIterator AI(PhysReg, TRI, true); AI.isValid(); ++AI)
317 if (!def_empty(*AI))
323 for (MCRegAliasIterator AI(PhysReg, TRI, true); AI.isValid(); ++AI)
324 if (AllocatableRegs.test(*AI))
RegisterScavenging.cpp 45 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI)
46 if (isUsed(*AI))
295 for (MCRegAliasIterator AI(MO.getReg(), TRI, true); AI.isValid(); ++AI)
296 Candidates.reset(*AI);
AggressiveAntiDepBreaker.cpp 160 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) {
161 unsigned Reg = *AI;
176 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) {
177 unsigned Reg = *AI;
192 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI)
    [all...]
  /external/llvm/lib/Transforms/Instrumentation/
ProfilingUtils.cpp 67 Function::arg_iterator AI;
71 AI = MainFn->arg_begin(); ++AI;
72 if (AI->getType() != ArgVTy) {
73 Instruction::CastOps opcode = CastInst::getCastOpcode(AI, false, ArgVTy,
76 CastInst::Create(opcode, AI, ArgVTy, "argv.cast", InitCall));
78 InitCall->setArgOperand(1, AI);
83 AI = MainFn->arg_begin();
86 if (!AI->getType()->isIntegerTy(32)) {
88 if (!AI->use_empty())
    [all...]
BoundsChecking.cpp 200 } else if (AtomicCmpXchgInst *AI = dyn_cast<AtomicCmpXchgInst>(Inst)) {
201 MadeChange |= instrument(AI->getPointerOperand(),AI->getCompareOperand());
202 } else if (AtomicRMWInst *AI = dyn_cast<AtomicRMWInst>(Inst)) {
203 MadeChange |= instrument(AI->getPointerOperand(), AI->getValOperand());
  /external/llvm/lib/Target/Hexagon/
HexagonRemoveSZExtArgs.cpp 51 for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end(); AI != AE;
52 ++AI, ++Idx) {
54 Argument* Arg = AI;
  /external/llvm/tools/opt/
AnalysisWrappers.cpp 48 for (CallSite::arg_iterator AI = CS.arg_begin(),
49 E = CS.arg_end(); AI != E; ++AI) {
50 if (!isa<Constant>(*AI)) continue;
  /external/clang/lib/CodeGen/
CGRecordLayout.h 105 const AccessInfo &AI = getComponent(i);
106 AccessedSize += AI.TargetBitWidth;
109 assert(AI.TargetBitWidth > 0);
112 assert(AI.FieldBitStart + AI.TargetBitWidth <= AI.AccessWidth);
115 assert(AI.TargetBitWidth + AI.TargetBitOffset <= Size);
  /external/llvm/lib/Transforms/Scalar/
ScalarReplAggregates.cpp 101 AllocaInst *AI;
126 explicit AllocaInfo(AllocaInst *ai)
127 : AI(ai), isUnsafe(false), isMemCpySrc(false), isMemCpyDst(false),
151 bool isSafeAllocaToScalarRepl(AllocaInst *AI);
164 void DoScalarReplacement(AllocaInst *AI,
168 void RewriteForScalarRepl(Instruction *I, AllocaInst *AI, uint64_t Offset,
170 void RewriteBitCast(BitCastInst *BC, AllocaInst *AI, uint64_t Offset,
172 void RewriteGEP(GetElementPtrInst *GEPI, AllocaInst *AI, uint64_t Offset,
174 void RewriteLifetimeIntrinsic(IntrinsicInst *II, AllocaInst *AI,
    [all...]
  /external/llvm/lib/Transforms/InstCombine/
InstCombineLoadStoreAlloca.cpp 145 isOnlyCopiedFromConstantGlobal(AllocaInst *AI,
148 if (isOnlyCopiedFromConstantGlobal(AI, TheCopy, ToDelete))
172 Instruction *InstCombiner::visitAllocaInst(AllocaInst &AI) {
176 Type *IntPtrTy = TD->getIntPtrType(AI.getContext());
177 if (AI.getArraySize()->getType() != IntPtrTy) {
178 Value *V = Builder->CreateIntCast(AI.getArraySize(),
180 AI.setOperand(0, V);
181 return &AI;
186 if (AI.isArrayAllocation()) { // Check C != 1
187 if (const ConstantInt *C = dyn_cast<ConstantInt>(AI.getArraySize()))
    [all...]
  /external/llvm/lib/Transforms/IPO/
IPConstantPropagation.cpp 105 CallSite::arg_iterator AI = CS.arg_begin();
108 ++i, ++AI, ++Arg) {
114 Constant *C = dyn_cast<Constant>(*AI);
119 } else if (*AI == &*Arg) {
134 Function::arg_iterator AI = F.arg_begin();
135 for (unsigned i = 0, e = ArgumentConstants.size(); i != e; ++i, ++AI) {
137 if (ArgumentConstants[i].second || AI->use_empty() ||
138 (AI->hasByValAttr() && !F.onlyReadsMemory()))
142 if (V == 0) V = UndefValue::get(AI->getType());
143 AI->replaceAllUsesWith(V)
    [all...]
  /external/llvm/include/llvm/
PassSupport.h 259 PassInfo *AI = new PassInfo(name, & agName :: ID); \
260 Registry.registerAnalysisGroup(& agName ::ID, 0, *AI, false, true); \
261 return AI; \
275 PassInfo *AI = new PassInfo(name, & agName :: ID); \
277 *AI, def, true); \
278 return AI; \
294 PassInfo *AI = new PassInfo(n, & agName :: ID); \
296 *AI, def, true); \
297 return AI; \
  /external/llvm/lib/Analysis/
AliasDebugger.cpp 61 for (Function::arg_iterator AI = I->arg_begin(), AE = I->arg_end();
62 AI != AE; ++AI)
63 Vals.insert(&*AI);
  /external/llvm/lib/VMCore/
TypeFinder.cpp 48 for (Function::const_arg_iterator AI = FI->arg_begin(),
49 AE = FI->arg_end(); AI != AE; ++AI)
50 incorporateValue(AI);

Completed in 1536 milliseconds

1 2 3 4 5 6