HomeSort by relevance Sort by last modified time
    Searched refs:AI (Results 1 - 25 of 143) 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");
MetaRenamer.cpp 74 for (Module::alias_iterator AI = M.alias_begin(), AE = M.alias_end();
75 AI != AE; ++AI) {
76 StringRef Name = AI->getName();
80 AI->setName("alias");
119 for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end();
120 AI != AE; ++AI)
121 if (!AI->getType()->isVoidTy())
122 AI->setName("arg")
    [all...]
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.
281 void DetermineInsertionPoint(AllocaInst *AI, unsigned AllocaNum,
283 void ComputeLiveInBlocks(AllocaInst *AI, AllocaInfo &Info,
287 void RewriteSingleStoreAlloca(AllocaInst *AI, AllocaInfo &Info,
289 void PromoteSingleBlockAlloca(AllocaInst *AI, AllocaInfo &Info
1099 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);
InlineFunction.cpp 423 static bool hasLifetimeMarkers(AllocaInst *AI) {
424 Type *Int8PtrTy = Type::getInt8PtrTy(AI->getType()->getContext());
425 if (AI->getType() == Int8PtrTy)
426 return isUsedByLifetimeMarker(AI);
429 for (Value::use_iterator I = AI->use_begin(), E = AI->use_end(); I != E;
432 if (I->stripPointerCasts() != AI) continue;
576 CallSite::arg_iterator AI = CS.arg_begin();
579 E = CalledFunc->arg_end(); I != E; ++I, ++AI, ++ArgNo) {
580 Value *ActualArg = *AI;
    [all...]
  /external/harfbuzz_ng/src/
hb-atomic-private.hh 51 #define hb_atomic_int_add(AI, V) InterlockedExchangeAdd (&(AI), (V))
67 #define hb_atomic_int_add(AI, V) (OSAtomicAdd32Barrier ((V), &(AI)) - (V))
84 #define hb_atomic_int_add(AI, V) __sync_fetch_and_add (&(AI), (V))
96 #define hb_atomic_int_add(AI, V) ( ({__machine_rw_barrier ();}), atomic_add_int_nv (&(AI), (V)) - (V))
106 #define hb_atomic_int_add(AI, V) (((AI) += (V)) - (V)
    [all...]
  /external/llvm/include/llvm/Transforms/Utils/
PromoteMemToReg.h 29 bool isAllocaPromotable(const AllocaInst *AI);
  /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...]
  /external/llvm/lib/CodeGen/
MachineCopyPropagation.cpp 68 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) {
69 SourceMap::iterator SI = SrcMap.find(*AI);
192 for (MCRegAliasIterator AI(Src, TRI, true); AI.isValid(); ++AI) {
193 CI = CopyMap.find(*AI);
212 for (MCRegAliasIterator AI(Def, TRI, false); AI.isValid(); ++AI)
    [all...]
StackProtector.cpp 76 bool HasAddressTaken(const Instruction *AI);
156 bool StackProtector::HasAddressTaken(const Instruction *AI) {
157 for (Value::const_use_iterator UI = AI->use_begin(), UE = AI->use_end();
161 if (AI == SI->getValueOperand())
164 if (AI == SI->getOperand(0))
220 if (AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
221 if (AI->isArrayAllocation()) {
228 dyn_cast<ConstantInt>(AI->getArraySize())) {
238 if (ContainsProtectableArray(AI->getAllocatedType(), Strong)
    [all...]
RegisterScavenging.cpp 41 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI)
42 if (isUsed(*AI, *AI == Reg))
288 for (MCRegAliasIterator AI(MO.getReg(), TRI, true); AI.isValid(); ++AI)
289 Candidates.reset(*AI);
CriticalAntiDepBreaker.cpp 65 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) {
66 unsigned Reg = *AI;
80 for (MCRegAliasIterator AI(*I, TRI, true); AI.isValid(); ++AI) {
81 unsigned Reg = *AI;
187 for (MCRegAliasIterator AI(Reg, TRI, false); AI.isValid(); ++AI)
    [all...]
DeadMachineInstructionElim.cpp 176 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI)
177 LivePhysRegs.set(*AI);
RegisterClassInfo.cpp 54 for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI)
55 CSRNum[*AI] = N + 1; // 0 means no CSR, 1 means CalleeSaved[0], ...
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...]
  /external/llvm/lib/Target/Hexagon/
HexagonRemoveSZExtArgs.cpp 52 for (Function::arg_iterator AI = F.arg_begin(), AE = F.arg_end(); AI != AE;
53 ++AI, ++Idx) {
55 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/llvm/unittests/Transforms/Utils/
IntegerDivision.cpp 36 Function::arg_iterator AI = F->arg_begin();
37 Value *A = AI++;
38 Value *B = AI++;
66 Function::arg_iterator AI = F->arg_begin();
67 Value *A = AI++;
68 Value *B = AI++;
96 Function::arg_iterator AI = F->arg_begin();
97 Value *A = AI++;
98 Value *B = AI++;
126 Function::arg_iterator AI = F->arg_begin()
    [all...]
  /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))
153 Instruction *InstCombiner::visitAllocaInst(AllocaInst &AI) {
157 Type *IntPtrTy = TD->getIntPtrType(AI.getContext());
158 if (AI.getArraySize()->getType() != IntPtrTy) {
159 Value *V = Builder->CreateIntCast(AI.getArraySize(),
161 AI.setOperand(0, V);
162 return &AI;
167 if (AI.isArrayAllocation()) { // Check C != 1
168 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/clang/lib/StaticAnalyzer/Checkers/
DirectIvarAssignment.cpp 168 AI = D->specific_attr_begin<AnnotateAttr>(),
169 AE = D->specific_attr_end<AnnotateAttr>(); AI != AE; ++AI) {
170 const AnnotateAttr *Ann = *AI;
238 AI = M->specific_attr_begin<AnnotateAttr>(),
239 AE = M->specific_attr_end<AnnotateAttr>(); AI != AE; ++AI) {
240 const AnnotateAttr *Ann = *AI;
  /external/llvm/lib/Analysis/
CodeMetrics.cpp 59 if (const AllocaInst *AI = dyn_cast<AllocaInst>(II)) {
60 if (!AI->isStaticAlloca())
AliasDebugger.cpp 61 for (Function::arg_iterator AI = I->arg_begin(), AE = I->arg_end();
62 AI != AE; ++AI)
63 Vals.insert(&*AI);

Completed in 289 milliseconds

1 2 3 4 5 6