Searched refs:BB (Results 1 - 25 of 478) sorted by relevance

1234567891011>>

/external/clang/test/CodeGen/
H A Ddecl-in-prototype.c6 int f1(enum {AA,BB} E) {
8 return BB;
12 int f2(enum {AA=7,BB} E) {
18 int f(void (*g)(), enum {AA,BB} h) {
/external/llvm/include/llvm/IR/
H A DPredIteratorCache.h38 /// for (BasicBlock **PI = PredCache->GetPreds(BB); *PI; ++PI)
41 /// for (pred_iterator PI = pred_begin(BB), E = pred_end(BB); PI != E; ++PI)
42 BasicBlock **GetPreds(BasicBlock *BB) { argument
43 BasicBlock **&Entry = BlockToPredsMap[BB];
46 SmallVector<BasicBlock*, 32> PredCache(pred_begin(BB), pred_end(BB));
49 BlockToPredCountMap[BB] = PredCache.size()-1;
56 unsigned GetNumPreds(BasicBlock *BB) { argument
57 GetPreds(BB);
[all...]
H A DInstIterator.h36 BB_i_t BB; // BasicBlocksType::iterator member in class:llvm::InstIterator
51 : BBs(II.BBs), BB(II.BB), BI(II.BI) {}
55 : BBs(II.BBs), BB(II.BB), BI(II.BI) {}
58 : BBs(&m.getBasicBlockList()), BB(BBs->begin()) { // begin ctor
59 if (BB != BBs->end()) {
60 BI = BB->begin();
66 : BBs(&m.getBasicBlockList()), BB(BBs->end()) { // end ctor
70 inline BBIty &getBasicBlockIterator() { return BB; }
[all...]
/external/llvm/tools/bugpoint-passes/
H A DTestPasses.cpp36 bool runOnBasicBlock(BasicBlock &BB) override {
37 for (BasicBlock::iterator I = BB.begin(), E = BB.end(); I != E; ++I)
59 bool runOnBasicBlock(BasicBlock &BB) override {
60 for (BasicBlock::iterator I = BB.begin(), E = BB.end(); I != E; ++I)
/external/clang/test/CodeGenCXX/
H A Dvirtual-base-cast.cpp8 struct BB { int b; virtual int bb(); }; struct
9 struct CC : AA, BB { virtual int aa(); virtual int bb(); virtual int cc(); };
48 BB* c() { return x; }
72 BB* d() { return y; }
/external/llvm/lib/CodeGen/
H A DMachineSSAUpdater.cpp64 bool MachineSSAUpdater::HasValueForBlock(MachineBasicBlock *BB) const {
65 return getAvailableVals(AV).count(BB);
70 void MachineSSAUpdater::AddAvailableValue(MachineBasicBlock *BB, unsigned V) { argument
71 getAvailableVals(AV)[BB] = V;
76 unsigned MachineSSAUpdater::GetValueAtEndOfBlock(MachineBasicBlock *BB) { argument
77 return GetValueAtEndOfBlockInternal(BB);
81 unsigned LookForIdenticalPHI(MachineBasicBlock *BB, argument
83 if (BB->empty())
86 MachineBasicBlock::iterator I = BB->begin();
93 while (I != BB
114 InsertNewDef(unsigned Opcode, MachineBasicBlock *BB, MachineBasicBlock::iterator I, const TargetRegisterClass *RC, MachineRegisterInfo *MRI, const TargetInstrInfo *TII) argument
142 GetValueInMiddleOfBlock(MachineBasicBlock *BB) argument
246 BlkSucc_begin(BlkT *BB) argument
247 BlkSucc_end(BlkT *BB) argument
276 FindPredecessorBlocks(MachineBasicBlock *BB, SmallVectorImpl<MachineBasicBlock*> *Preds) argument
285 GetUndefVal(MachineBasicBlock *BB, MachineSSAUpdater *Updater) argument
297 CreateEmptyPHI(MachineBasicBlock *BB, unsigned NumPreds, MachineSSAUpdater *Updater) argument
349 GetValueAtEndOfBlockInternal(MachineBasicBlock *BB) argument
[all...]
H A DUnreachableBlockElim.cpp67 for (BasicBlock *BB : depth_first_ext(&F, Reachable))
68 (void)BB/* Mark all reachable blocks */;
75 BasicBlock *BB = I; local
76 DeadBlocks.push_back(BB);
77 while (PHINode *PN = dyn_cast<PHINode>(BB->begin())) {
79 BB->getInstList().pop_front();
81 for (succ_iterator SI = succ_begin(BB), E = succ_end(BB); SI != E; ++SI)
82 (*SI)->removePredecessor(BB);
83 BB
134 MachineBasicBlock *BB = I; local
170 MachineBasicBlock *BB = I; local
[all...]
H A DIfConversion.cpp76 ICNotClassfied, // BB data valid, but not classified.
78 ICSimple, // BB is entry of an one split, no rejoin sub-CFG.
82 ICTriangle, // BB is entry of a triangle sub-CFG.
83 ICDiamond // BB is entry of a diamond sub-CFG.
93 /// IsDone - True if BB is not to be considered for ifcvt.
94 /// IsBeingAnalyzed - True if BB is currently being analyzed.
95 /// IsAnalyzed - True if BB has been analyzed (info is still valid).
96 /// IsEnqueued - True if BB has been enqueued to be ifcvt'ed.
98 /// HasFallThrough - True if BB may fallthrough to the following BB
122 MachineBasicBlock *BB; member in struct:__anon10418::IfConverter::BBInfo
218 MeetIfcvtSizeLimit(MachineBasicBlock &BB, unsigned Cycle, unsigned Extra, const BranchProbability &Prediction) const argument
434 findFalseBlock(MachineBasicBlock *BB, MachineBasicBlock *TrueBB) argument
460 getNextBlock(MachineBasicBlock *BB) argument
762 AnalyzeBlock(MachineBasicBlock *BB, std::vector<IfcvtToken*> &Tokens) argument
918 MachineBasicBlock *BB = I; local
929 canFallThroughTo(MachineBasicBlock *BB, MachineBasicBlock *ToBB) argument
947 InvalidatePreds(MachineBasicBlock *BB) argument
959 InsertUncondBranch(MachineBasicBlock *BB, MachineBasicBlock *ToBB, const TargetInstrInfo *TII) argument
[all...]
H A DEdgeBundles.cpp80 unsigned BB = MBB.getNumber(); local
81 O << "\t\"BB#" << BB << "\" [ shape=box ]\n"
82 << '\t' << G.getBundle(BB, false) << " -> \"BB#" << BB << "\"\n"
83 << "\t\"BB#" << BB << "\" -> " << G.getBundle(BB, true) << '\n';
86 O << "\t\"BB#" << B
[all...]
/external/llvm/lib/Analysis/
H A DCFG.cpp29 const BasicBlock *BB = &F.getEntryBlock(); local
30 if (succ_empty(BB))
37 Visited.insert(BB);
38 VisitStack.push_back(std::make_pair(BB, succ_begin(BB)));
39 InStack.insert(BB);
47 BB = *I++;
48 if (Visited.insert(BB).second) {
53 if (InStack.count(BB))
54 Result.push_back(std::make_pair(ParentBB, BB));
72 GetSuccessorNumber(BasicBlock *BB, BasicBlock *Succ) argument
112 getOutermostLoop(const LoopInfo *LI, const BasicBlock *BB) argument
143 BasicBlock *BB = Worklist.pop_back_val(); local
199 BasicBlock *BB = const_cast<BasicBlock *>(A->getParent()); local
[all...]
H A DBranchProbabilityInfo.cpp118 static uint32_t getMaxWeightFor(BasicBlock *BB) { argument
119 return UINT32_MAX / BB->getTerminator()->getNumSuccessors();
127 bool BranchProbabilityInfo::calcUnreachableHeuristics(BasicBlock *BB) { argument
128 TerminatorInst *TI = BB->getTerminator();
131 PostDominatedByUnreachable.insert(BB);
138 for (succ_iterator I = succ_begin(BB), E = succ_end(BB); I != E; ++I) {
148 PostDominatedByUnreachable.insert(BB);
160 setEdgeWeight(BB, *I, UnreachableWeight);
170 setEdgeWeight(BB, *
177 calcMetadataWeights(BasicBlock *BB) argument
222 calcColdCallHeuristics(BasicBlock *BB) argument
277 calcPointerHeuristics(BasicBlock *BB) argument
310 calcLoopBranchHeuristics(BasicBlock *BB) argument
367 calcZeroHeuristics(BasicBlock *BB) argument
449 calcFloatingPointHeuristics(BasicBlock *BB) argument
485 calcInvokeHeuristics(BasicBlock *BB) argument
[all...]
/external/llvm/include/llvm/Analysis/
H A DBranchProbabilityInfo.h77 BasicBlock *getHotSucc(BasicBlock *BB) const;
146 uint32_t getSumForBlock(const BasicBlock *BB) const;
148 bool calcUnreachableHeuristics(BasicBlock *BB);
149 bool calcMetadataWeights(BasicBlock *BB);
150 bool calcColdCallHeuristics(BasicBlock *BB);
151 bool calcPointerHeuristics(BasicBlock *BB);
152 bool calcLoopBranchHeuristics(BasicBlock *BB);
153 bool calcZeroHeuristics(BasicBlock *BB);
154 bool calcFloatingPointHeuristics(BasicBlock *BB);
155 bool calcInvokeHeuristics(BasicBlock *BB);
[all...]
H A DLoopIterator.h84 bool hasPreorder(BasicBlock *BB) const { return PostNumbers.count(BB); }
87 bool hasPostorder(BasicBlock *BB) const {
88 DenseMap<BasicBlock*, unsigned>::const_iterator I = PostNumbers.find(BB);
93 unsigned getPostorder(BasicBlock *BB) const {
94 DenseMap<BasicBlock*, unsigned>::const_iterator I = PostNumbers.find(BB);
101 unsigned getRPO(BasicBlock *BB) const {
102 return 1 + PostBlocks.size() - getPostorder(BB);
118 void finishPostorder(BasicBlock *BB);
153 bool visitPreorder(BasicBlock *BB) { argument
162 finishPostorder(BasicBlock *BB) argument
175 finishPostorder(BasicBlock *BB) argument
[all...]
/external/llvm/lib/Target/Mips/
H A DMips16ISelLowering.h54 MachineBasicBlock *BB) const;
58 MachineBasicBlock *BB) const;
62 MachineBasicBlock *BB) const;
66 MachineBasicBlock *BB) const;
70 MachineInstr *MI, MachineBasicBlock *BB) const;
74 MachineInstr *MI, MachineBasicBlock *BB) const;
78 MachineInstr *MI, MachineBasicBlock *BB )const;
H A DMips16ISelLowering.cpp171 MachineBasicBlock *BB) const {
174 return MipsTargetLowering::EmitInstrWithCustomInserter(MI, BB);
176 return emitSel16(Mips::BeqzRxImm16, MI, BB);
178 return emitSel16(Mips::BnezRxImm16, MI, BB);
180 return emitSeliT16(Mips::Bteqz16, Mips::CmpiRxImmX16, MI, BB);
182 return emitSeliT16(Mips::Bteqz16, Mips::SltiRxImmX16, MI, BB);
184 return emitSeliT16(Mips::Bteqz16, Mips::SltiuRxImmX16, MI, BB);
186 return emitSeliT16(Mips::Btnez16, Mips::CmpiRxImmX16, MI, BB);
188 return emitSeliT16(Mips::Btnez16, Mips::SltiRxImmX16, MI, BB);
190 return emitSeliT16(Mips::Btnez16, Mips::SltiuRxImmX16, MI, BB);
[all...]
H A DMipsSEISelLowering.h81 MachineBasicBlock *BB) const;
83 MachineBasicBlock *BB,
87 MachineBasicBlock *BB) const;
90 MachineBasicBlock *BB) const;
93 MachineBasicBlock *BB) const;
96 MachineBasicBlock *BB) const;
99 MachineBasicBlock *BB,
104 MachineBasicBlock *BB) const;
107 MachineBasicBlock *BB) const;
110 MachineBasicBlock *BB) cons
[all...]
/external/llvm/lib/Transforms/IPO/
H A DPruneEH.cpp50 void DeleteBasicBlock(BasicBlock *BB);
106 for (Function::iterator BB = F->begin(), E = F->end(); BB != E; ++BB) {
107 if (CheckUnwind && isa<ResumeInst>(BB->getTerminator())) {
110 } else if (CheckReturn && isa<ReturnInst>(BB->getTerminator())) {
117 for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ++I)
178 for (Function::iterator BB = F->begin(), E = F->end(); BB !
238 DeleteBasicBlock(BasicBlock *BB) argument
[all...]
/external/llvm/lib/Transforms/Utils/
H A DInstructionNamer.cpp40 for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB) {
41 if (!BB->hasName())
42 BB->setName("bb");
44 for (BasicBlock::iterator I = BB->begin(), E = BB->end(); I != E; ++I)
H A DLowerInvoke.cpp56 for (Function::iterator BB = F.begin(), E = F.end(); BB != E; ++BB)
57 if (InvokeInst *II = dyn_cast<InvokeInst>(BB->getTerminator())) {
72 II->getUnwindDest()->removePredecessor(BB);
75 BB->getInstList().erase(II);
/external/clang/test/Sema/
H A Ddecl-in-prototype.c5 int f1(enum {AA,BB} E) { // expected-warning {{will not be visible outside of this function}}
6 return BB;
9 int f2(enum {AA=7,BB} E) { // expected-warning {{will not be visible outside of this function}}
/external/clang/test/SemaTemplate/
H A Dinstantiate-member-initializers.cpp23 template <class T> class BB : public AA<T> { class in inherits:AA
25 BB() : AA<T>(1) {} function in class:BB
27 BB<int> x;
/external/llvm/include/llvm/CodeGen/
H A DMachineLoopInfo.h97 /// getLoopFor - Return the inner most loop that BB lives in. If a basic
100 inline MachineLoop *getLoopFor(const MachineBasicBlock *BB) const {
101 return LI.getLoopFor(BB);
106 inline const MachineLoop *operator[](const MachineBasicBlock *BB) const {
107 return LI.getLoopFor(BB);
112 inline unsigned getLoopDepth(const MachineBasicBlock *BB) const {
113 return LI.getLoopDepth(BB);
117 inline bool isLoopHeader(MachineBasicBlock *BB) const {
118 return LI.isLoopHeader(BB);
134 /// changeLoopFor - Change the top-level loop that contains BB t
137 changeLoopFor(MachineBasicBlock *BB, MachineLoop *L) argument
156 removeBlock(MachineBasicBlock *BB) argument
[all...]
/external/mesa3d/src/gallium/drivers/radeon/
H A DAMDGPUConvertToISA.cpp52 for (MachineFunction::iterator BB = MF.begin(), BB_E = MF.end();
53 BB != BB_E; ++BB) {
54 MachineBasicBlock &MBB = *BB;
H A DSIISelLowering.h30 void AppendS_WAITCNT(MachineInstr *MI, MachineBasicBlock &BB,
32 void LowerSI_INTERP(MachineInstr *MI, MachineBasicBlock &BB,
34 void LowerSI_INTERP_CONST(MachineInstr *MI, MachineBasicBlock &BB,
36 void LowerSI_KIL(MachineInstr *MI, MachineBasicBlock &BB,
38 void LowerSI_V_CNDLT(MachineInstr *MI, MachineBasicBlock &BB,
50 MachineBasicBlock * BB) const;
/external/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp121 bool ProcessBlock(BasicBlock *BB);
122 bool ThreadEdge(BasicBlock *BB, const SmallVectorImpl<BasicBlock*> &PredBBs,
124 bool DuplicateCondBranchOnPHIIntoPred(BasicBlock *BB,
127 bool ComputeValueKnownInPredecessors(Value *V, BasicBlock *BB,
131 bool ProcessThreadableEdges(Value *Cond, BasicBlock *BB,
139 bool TryToUnfoldSelect(CmpInst *CondCmp, BasicBlock *BB);
179 BasicBlock *BB = I; local
181 while (ProcessBlock(BB))
188 if (pred_empty(BB) &&
189 BB !
239 getJumpThreadDuplicationCost(const BasicBlock *BB, unsigned Threshold) argument
344 ComputeValueKnownInPredecessors(Value *V, BasicBlock *BB, PredValueInfo &Result, ConstantPreference Preference, Instruction *CxtI) argument
630 GetBestDestForJumpOnUndef(BasicBlock *BB) argument
648 hasAddressTakenAndUsed(BasicBlock *BB) argument
660 ProcessBlock(BasicBlock *BB) argument
1060 FindMostPopularDest(BasicBlock *BB, const SmallVectorImpl<std::pair<BasicBlock*, BasicBlock*> > &PredToDestList) argument
1119 ProcessThreadableEdges(Value *Cond, BasicBlock *BB, ConstantPreference Preference, Instruction *CxtI) argument
1229 BasicBlock *BB = PN->getParent(); local
1259 BasicBlock *BB = BO->getParent(); local
1387 ThreadEdge(BasicBlock *BB, const SmallVectorImpl<BasicBlock*> &PredBBs, BasicBlock *SuccBB) argument
1427 << *BB << "\\n"); local
1535 DuplicateCondBranchOnPHIIntoPred(BasicBlock *BB, const SmallVectorImpl<BasicBlock *> &PredBBs) argument
1570 << DuplicationCost << " block is:" << *BB << "\\n"); local
1685 TryToUnfoldSelect(CmpInst *CondCmp, BasicBlock *BB) argument
[all...]

Completed in 701 milliseconds

1234567891011>>