/external/llvm/lib/Object/ |
Object.cpp | 30 section_iterator SI = unwrap(ObjectFile)->begin_sections(); 31 return wrap(new section_iterator(SI)); 34 void LLVMDisposeSectionIterator(LLVMSectionIteratorRef SI) { 35 delete unwrap(SI); 39 LLVMSectionIteratorRef SI) { 40 return (*unwrap(SI) == unwrap(ObjectFile)->end_sections()) ? 1 : 0; 43 void LLVMMoveToNextSection(LLVMSectionIteratorRef SI) { 45 unwrap(SI)->increment(ec); 49 const char *LLVMGetSectionName(LLVMSectionIteratorRef SI) { 51 if (error_code ec = (*unwrap(SI))->getName(ret) [all...] |
/external/llvm/lib/Transforms/Scalar/ |
BasicBlockPlacement.cpp | 127 succ_iterator SI = succ_begin(BB), E = succ_end(BB); 130 for (; SI != E && PlacedBlocks.count(*SI); ++SI) 132 if (SI == E) return; // No more successors to place. 134 double MaxExecutionCount = PI->getExecutionCount(*SI); 135 BasicBlock *MaxSuccessor = *SI; 138 for (; SI != E; ++SI) 139 if (!PlacedBlocks.count(*SI)) { [all...] |
DeadStoreElimination.cpp | 166 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) 167 return AA.getLocation(SI); 219 if (StoreInst *SI = dyn_cast<StoreInst>(I)) 220 return SI->isUnordered(); 243 if (StoreInst *SI = dyn_cast<StoreInst>(I)) 244 return SI->getPointerOperand(); 449 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) { 451 if (SI->getPointerOperand() == DepLoad->getPointerOperand() && 452 SI->getOperand(0) == DepLoad && isRemovable(SI)) { [all...] |
LoopIdiomRecognize.cpp | 82 bool processLoopStore(StoreInst *SI, const SCEV *BECount); 90 bool processLoopStoreOfLoopLoad(StoreInst *SI, unsigned StoreSize, 238 if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) { 240 if (!processLoopStore(SI, BECount)) continue; 269 bool LoopIdiomRecognize::processLoopStore(StoreInst *SI, const SCEV *BECount) { 270 if (!SI->isSimple()) return false; 272 Value *StoredVal = SI->getValueOperand(); 273 Value *StorePtr = SI->getPointerOperand(); 298 dbgs() << "NEGATIVE STRIDE: " << *SI << "\n"; 299 dbgs() << "BB: " << *SI->getParent() [all...] |
/external/llvm/lib/Analysis/ |
SparsePropagation.cpp | 173 SwitchInst &SI = cast<SwitchInst>(TI); 176 SCValue = getOrInitValueState(SI.getCondition()); 178 SCValue = getLatticeState(SI.getCondition()); 191 Constant *C = LatticeFunc->GetConstant(SCValue, SI.getCondition(), *this); 198 Succs[SI.findCaseValue(cast<ConstantInt>(C))] = true;
|
/external/llvm/lib/Transforms/IPO/ |
FunctionAttrs.cpp | 172 } else if (StoreInst *SI = dyn_cast<StoreInst>(I)) { 174 if (!SI->isVolatile()) { 175 AliasAnalysis::Location Loc = AA->getLocation(SI); 288 SelectInst *SI = cast<SelectInst>(RVI); 289 FlowsToReturn.insert(SI->getTrueValue()); 290 FlowsToReturn.insert(SI->getFalseValue());
|
/external/clang/lib/ARCMigrate/ |
TransAutoreleasePool.cpp | 305 Stmt::child_iterator SI = scope.End, SE = compoundS->body_end(); 306 ++SI; 309 if (SI != SE) 310 if (ReturnStmt *retS = dyn_cast<ReturnStmt>(*SI)) 315 ++SI; // the return will be included in scope, don't check it. 318 for (; SI != SE; ++SI) { 321 declarationLoc).TraverseStmt(*SI);
|
/external/llvm/lib/Archive/ |
ArchiveReader.cpp | 461 SymTabType::iterator SI = symTab.find(symbol); 462 if (SI == symTab.end()) 472 SI->second + // offset in symbol-table-less file
|
/external/llvm/lib/CodeGen/ |
GCStrategy.cpp | 183 if (StoreInst *SI = dyn_cast<StoreInst>(IP)) 185 dyn_cast<AllocaInst>(SI->getOperand(1)->stripPointerCasts())) 193 StoreInst* SI = new StoreInst(ConstantPointerNull::get(cast<PointerType>( 196 SI->insertAfter(*I);
|
Spiller.cpp | 223 LiveInterval &SI = lss->getOrCreateInterval(SS, RC); 224 if (!SI.hasAtLeastOneValue()) 225 SI.getNextValue(SlotIndex(), 0, lss->getVNInfoAllocator()); 226 SI.MergeRangesInAsValue(LRE.getParent(), SI.getValNumInfo(0));
|
MachineBasicBlock.cpp | 254 for (const_succ_iterator SI = succ_begin(), E = succ_end(); SI != E; ++SI) 255 OS << " BB#" << (*SI)->getNumber(); 386 succ_iterator SI = std::find(Successors.begin(), Successors.end(), Old); 390 weight_iterator WI = getWeightIterator(SI); 395 removeSuccessor(SI); 739 MachineBasicBlock::succ_iterator SI = succ_begin(); 740 while (SI != succ_end()) { 741 const MachineBasicBlock *MBB = *SI; [all...] |
MachineCSE.cpp | 347 DenseMap<MachineBasicBlock*, ScopeType*>::iterator SI = ScopeMap.find(MBB); 348 assert(SI != ScopeMap.end()); 349 ScopeMap.erase(SI); 350 delete SI->second;
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
FunctionLoweringInfo.cpp | 126 DenseMap<const AllocaInst *, int>::iterator SI = 128 if (SI != StaticAllocaMap.end()) { // Check for VLAs. 129 int FI = SI->second;
|
/external/llvm/lib/Target/MBlaze/ |
MBlazeFrameLowering.cpp | 129 MachineBasicBlock::iterator SI = I; 130 for (SI++; SI != MIE; ++SI) { 131 if (!SI->getOperand(0).isReg() || 132 !SI->getOperand(1).isFI() || 133 SI->getOpcode() != MBlaze::SWI) continue; 135 int FI = SI->getOperand(1).getIndex(); 136 if (SI->getOperand(0).getReg() != FIReg || 140 if (SI->getOperand(0).isDef()) break [all...] |
/external/llvm/lib/Target/ |
TargetData.cpp | 79 const uint64_t *SI = 81 assert(SI != &MemberOffsets[0] && "Offset not in structure type!"); 82 --SI; 83 assert(*SI <= Offset && "upper_bound didn't work"); 84 assert((SI == &MemberOffsets[0] || *(SI-1) <= Offset) && 85 (SI+1 == &MemberOffsets[NumElements] || *(SI+1) > Offset) && 93 return SI-&MemberOffsets[0];
|
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineAddSub.cpp | 257 if (SelectInst *SI = dyn_cast<SelectInst>(LHS)) 258 if (Instruction *R = FoldOpIntoSelect(I, SI)) 264 SelectInst *SI = dyn_cast<SelectInst>(LHS); 266 if (!SI) { 267 SI = dyn_cast<SelectInst>(RHS); 270 if (SI && SI->hasOneUse()) { 271 Value *TV = SI->getTrueValue(); 272 Value *FV = SI->getFalseValue(); 279 return SelectInst::Create(SI->getCondition(), N, A) [all...] |
InstCombineMulDivRem.cpp | 115 if (BinaryOperator *SI = dyn_cast<BinaryOperator>(Op0)) 116 if (SI->getOpcode() == Instruction::Shl) 117 if (Constant *ShOp = dyn_cast<Constant>(SI->getOperand(1))) 118 return BinaryOperator::CreateMul(SI->getOperand(0), 166 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) 167 if (Instruction *R = FoldOpIntoSelect(I, SI)) 278 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) 279 if (Instruction *R = FoldOpIntoSelect(I, SI)) 297 SelectInst *SI = cast<SelectInst>(I.getOperand(1)); 301 if (Constant *ST = dyn_cast<Constant>(SI->getOperand(1)) [all...] |
InstCombineSelect.cpp | 26 SelectInst *SI = dyn_cast<SelectInst>(V); 27 if (SI == 0) return SPF_UNKNOWN; 29 ICmpInst *ICI = dyn_cast<ICmpInst>(SI->getCondition()); 36 if (SI->getTrueValue() == ICI->getOperand(0) && 37 SI->getFalseValue() == ICI->getOperand(1)) { 52 if (SI->getTrueValue() == ICI->getOperand(1) && 53 SI->getFalseValue() == ICI->getOperand(0)) { 124 Instruction *InstCombiner::FoldSelectOpOp(SelectInst &SI, Instruction *TI, 137 Value *NewSI = Builder->CreateSelect(SI.getCondition(), TI->getOperand(0), 138 FI->getOperand(0), SI.getName()+".v") [all...] |
InstCombineShifts.cpp | 32 if (SelectInst *SI = dyn_cast<SelectInst>(Op1)) 33 if (Instruction *R = FoldOpIntoSelect(I, SI)) 164 SelectInst *SI = cast<SelectInst>(I); 165 return CanEvaluateShifted(SI->getTrueValue(), NumBits, isLeftShift, IC) && 166 CanEvaluateShifted(SI->getFalseValue(), NumBits, isLeftShift, IC); 351 if (SelectInst *SI = dyn_cast<SelectInst>(Op0)) 352 if (Instruction *R = FoldOpIntoSelect(I, SI))
|
/external/clang/lib/Basic/ |
IdentifierTable.cpp | 332 MultiKeywordSelector *SI = reinterpret_cast<MultiKeywordSelector *>(InfoPtr); 333 return SI->getNumArgs(); 342 MultiKeywordSelector *SI = reinterpret_cast<MultiKeywordSelector *>(InfoPtr); 343 return SI->getIdentifierInfoForSlot(argIndex); 466 if (MultiKeywordSelector *SI = 468 return Selector(SI); 473 MultiKeywordSelector *SI = 476 new (SI) MultiKeywordSelector(nKeys, IIV); 477 SelTabImpl.Table.InsertNode(SI, InsertPos); 478 return Selector(SI); [all...] |
/external/clang/utils/TableGen/ |
NeonEmitter.h | 153 Record *SI = R.getClass("SInst"); 156 ClassMap[SI] = ClassS;
|
/external/llvm/lib/Transforms/Utils/ |
CodeExtractor.cpp | 425 StoreInst *SI = new StoreInst(StructValues[i], GEP); 426 codeReplacer->getInstList().push_back(SI);
|
/external/llvm/lib/VMCore/ |
AutoUpgrade.cpp | 220 StoreInst *SI = Builder.CreateStore(Arg1, BC); 221 SI->setMetadata(M->getMDKindID("nontemporal"), Node); 222 SI->setAlignment(16);
|
/external/llvm/include/llvm/Analysis/ |
LoopInfo.h | 148 for (typename BlockTraits::ChildIteratorType SI = 150 SE = BlockTraits::child_end(const_cast<BlockT*>(BB)); SI != SE; ++SI) { 151 if (!contains(*SI)) 277 typename BlockTraits::ChildIteratorType SI = BlockTraits::child_begin(Out); 278 ++SI; 279 if (SI != BlockTraits::child_end(Out)) 432 for (typename BlockTraits::ChildIteratorType SI = 434 SI != SE; ++SI) [all...] |
/external/llvm/include/llvm/Support/ |
PatternMatch.h | 713 SelectInst *SI = dyn_cast<SelectInst>(V); 714 if (!SI) 716 ICmpInst *Cmp = dyn_cast<ICmpInst>(SI->getCondition()); 721 Value *TrueVal = SI->getTrueValue(); 722 Value *FalseVal = SI->getFalseValue();
|