/external/clang/test/SemaTemplate/ |
H A D | value-dependent-null-pointer-constant.cpp | 5 const char *f0(bool Cond) { argument 6 return Cond? "honk" : N; 9 const char *f1(bool Cond) { argument 10 return Cond? N : "honk";
|
H A D | constructor-template.cpp | 60 X2 test(bool Cond, X2 x2) { argument 61 if (Cond) 80 X4 test_X4(bool Cond, X4 x4) { argument
|
H A D | instantiate-expr-2.cpp | 77 struct Cond { 81 enum { resultT = Cond<true>::is, 82 resultF = Cond<false>::is }; 92 struct Cond { struct in namespace:N6 97 typedef Cond<true, int, char>::True True; 98 typedef Cond<true, int, char>::False False; 112 struct Cond { struct in namespace:N7 117 //Cond<true, int*, double> C; // Errors 119 //typedef Cond<true, int*, double>::Type Type; // Errors 120 typedef Cond<tru [all...] |
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | ConstraintManager.h | 68 DefinedSVal Cond, 75 ProgramStatePair assumeDual(ProgramStateRef State, DefinedSVal Cond) { argument 76 ProgramStateRef StTrue = assume(State, Cond, true); 78 // If StTrue is infeasible, asserting the falseness of Cond is unnecessary 86 assert(assume(State, Cond, false) && "System is over constrained."); 91 ProgramStateRef StFalse = assume(State, Cond, false);
|
H A D | ProgramState.h | 630 inline ProgramStateRef ProgramState::assume(DefinedOrUnknownSVal Cond, argument 632 if (Cond.isUnknown()) 636 ->assume(this, Cond.castAs<DefinedSVal>(), Assumption); 640 ProgramState::assume(DefinedOrUnknownSVal Cond) const { 641 if (Cond.isUnknown()) 645 ->assumeDual(this, Cond.castAs<DefinedSVal>());
|
/external/llvm/lib/Target/MSP430/ |
H A D | MSP430BranchSelector.cpp | 150 SmallVector<MachineOperand, 1> Cond; local 151 Cond.push_back(I->getOperand(1)); 154 TII->ReverseBranchCondition(Cond); 156 .addImm(4).addOperand(Cond[0]);
|
H A D | MSP430InstrInfo.cpp | 127 ReverseBranchCondition(SmallVectorImpl<MachineOperand> &Cond) const { 128 assert(Cond.size() == 1 && "Invalid Xbranch condition!"); 130 MSP430CC::CondCodes CC = static_cast<MSP430CC::CondCodes>(Cond[0].getImm()); 154 Cond[0].setImm(CC); 172 SmallVectorImpl<MachineOperand> &Cond, 207 Cond.clear(); 231 if (Cond.empty()) { 234 Cond.push_back(MachineOperand::CreateImm(BranchCode)); 240 assert(Cond.size() == 1); 248 MSP430CC::CondCodes OldBranchCode = (MSP430CC::CondCodes)Cond[ 169 AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, bool AllowModify) const argument 260 InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, const SmallVectorImpl<MachineOperand> &Cond, DebugLoc DL) const argument [all...] |
/external/clang/lib/StaticAnalyzer/Core/ |
H A D | SimpleConstraintManager.cpp | 59 DefinedSVal Cond, 61 if (Optional<NonLoc> NV = Cond.getAs<NonLoc>()) 63 return assume(state, Cond.castAs<Loc>(), Assumption); 75 Loc Cond, bool Assumption) { 76 switch (Cond.getSubKind()) { 84 const MemRegion *R = Cond.castAs<loc::MemRegionVal>().getRegion(); 106 bool b = Cond.castAs<loc::ConcreteInt>().getValue() != 0; 156 NonLoc Cond, 161 if (!canReasonAbout(Cond)) { 163 SymbolRef sym = Cond 58 assume(ProgramStateRef state, DefinedSVal Cond, bool Assumption) argument 74 assumeAux(ProgramStateRef state, Loc Cond, bool Assumption) argument 155 assumeAux(ProgramStateRef state, NonLoc Cond, bool Assumption) argument [all...] |
H A D | CoreEngine.cpp | 448 void CoreEngine::HandleBranch(const Stmt *Cond, const Stmt *Term, argument 453 SubEng.processBranch(Cond, Term, Ctx, Pred, Dst,
|
/external/llvm/lib/Target/MBlaze/ |
H A D | MBlazeInstrInfo.cpp | 118 SmallVectorImpl<MachineOperand> &Cond, 146 Cond.push_back(MachineOperand::CreateImm(LastInst->getOpcode())); 147 Cond.push_back(LastInst->getOperand(0)); 165 Cond.push_back(MachineOperand::CreateImm(SecondLastInst->getOpcode())); 166 Cond.push_back(SecondLastInst->getOperand(0)); 189 const SmallVectorImpl<MachineOperand> &Cond, 193 assert((Cond.size() == 2 || Cond.size() == 0) && 197 if (!Cond.empty()) 198 Opc = (unsigned)Cond[ 115 AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, bool AllowModify) const argument 187 InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, const SmallVectorImpl<MachineOperand> &Cond, DebugLoc DL) const argument [all...] |
/external/llvm/lib/Target/NVPTX/ |
H A D | NVPTXInstrInfo.cpp | 182 SmallVectorImpl<MachineOperand> &Cond, 200 Cond.push_back(LastInst->getOperand(0)); 219 Cond.push_back(SecondLastInst->getOperand(0)); 264 const SmallVectorImpl<MachineOperand> &Cond, 268 assert((Cond.size() == 1 || Cond.size() == 0) && 273 if (Cond.empty()) // Unconditional branch 277 .addReg(Cond[0].getReg()).addMBB(TBB); 283 .addReg(Cond[0].getReg()).addMBB(TBB); 179 AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, bool AllowModify) const argument 262 InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, const SmallVectorImpl<MachineOperand> &Cond, DebugLoc DL) const argument
|
/external/llvm/lib/Transforms/Scalar/ |
H A D | CorrelatedValuePropagation.cpp | 206 Value *Cond = SI->getCondition(); local 211 if (isa<Instruction>(Cond) && cast<Instruction>(Cond)->getParent() == BB) 231 Cond, Case, *PI, BB); 260 Cond = SI->getCondition();
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
H A D | CheckerDocumentation.cpp | 207 SVal Cond, 206 evalAssume(ProgramStateRef State, SVal Cond, bool Assumption) const argument
|
/external/clang/test/SemaCXX/ |
H A D | vector.cpp | 40 void conditional(bool Cond, char16 c16, longlong16 ll16, char16_e c16e, argument 43 __typeof__(Cond? c16 : c16) *c16p1 = &c16; 44 __typeof__(Cond? ll16 : ll16) *ll16p1 = &ll16; 45 __typeof__(Cond? c16e : c16e) *c16ep1 = &c16e; 46 __typeof__(Cond? ll16e : ll16e) *ll16ep1 = &ll16e; 49 __typeof__(Cond? c16 : c16e) *c16ep2 = &c16e; 50 __typeof__(Cond? c16e : c16) *c16ep3 = &c16e; 51 __typeof__(Cond? ll16 : ll16e) *ll16ep2 = &ll16e; 52 __typeof__(Cond? ll16e : ll16) *ll16ep3 = &ll16e; 55 (void)(Cond 108 test_implicit_conversions(bool Cond, char16 c16, longlong16 ll16, char16_e c16e, longlong16_e ll16e, convertible_to<char16> to_c16, convertible_to<longlong16> to_ll16, convertible_to<char16_e> to_c16e, convertible_to<longlong16_e> to_ll16e, convertible_to<char16&> rto_c16, convertible_to<char16_e&> rto_c16e) argument [all...] |
H A D | conditional-expr.cpp | 236 void f(bool Cond, String S, OtherString OS) { argument 237 (void)(Cond? S : ""); 238 (void)(Cond? "" : S); 240 (void)(Cond? S : a); 241 (void)(Cond? a : S); 242 (void)(Cond? OS : S);
|
H A D | conversion-function.cpp | 111 AutoPtr test_auto_ptr(bool Cond) { argument 115 if (Cond)
|
/external/llvm/lib/CodeGen/ |
H A D | CodePlacementOpt.cpp | 78 SmallVector<MachineOperand, 4> Cond; local 79 if (TII->AnalyzeBranch(*MBB, TBB, FBB, Cond)) 85 if (Cond.empty() && TBB) 107 SmallVector<MachineOperand, 4> Cond; local 109 if (TII->AnalyzeBranch(*MBB, TBB, FBB, Cond)) 117 if (1u + !Cond.empty() != MBB->succ_size()) 120 if (!Cond.empty() && TII->ReverseBranchCondition(Cond))
|
H A D | PeepholeOptimizer.cpp | 402 SmallVector<MachineOperand, 4> Cond; local 403 if (TII->analyzeSelect(MI, Cond, TrueOp, FalseOp, Optimizable))
|
/external/llvm/lib/Target/Mips/ |
H A D | MipsInstrInfo.cpp | 79 SmallVectorImpl<MachineOperand> &Cond) const { 86 Cond.push_back(MachineOperand::CreateImm(Opc)); 89 Cond.push_back(Inst->getOperand(i)); 95 SmallVectorImpl<MachineOperand> &Cond, 98 BranchType BT = AnalyzeBranch(MBB, TBB, FBB, Cond, AllowModify, BranchInstrs); 105 const SmallVectorImpl<MachineOperand>& Cond) 107 unsigned Opc = Cond[0].getImm(); 111 for (unsigned i = 1; i < Cond.size(); ++i) { 112 if (Cond[i].isReg()) 113 MIB.addReg(Cond[ 92 AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, bool AllowModify) const argument 123 InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, const SmallVectorImpl<MachineOperand> &Cond, DebugLoc DL) const argument 190 AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, bool AllowModify, SmallVectorImpl<MachineInstr*> &BranchInstrs) const argument [all...] |
/external/llvm/lib/Target/PowerPC/ |
H A D | PPCInstrInfo.cpp | 210 SmallVectorImpl<MachineOperand> &Cond, 242 Cond.push_back(LastInst->getOperand(0)); 243 Cond.push_back(LastInst->getOperand(1)); 252 Cond.push_back(MachineOperand::CreateImm(1)); 253 Cond.push_back(MachineOperand::CreateReg(isPPC64 ? PPC::CTR8 : PPC::CTR, 263 Cond.push_back(MachineOperand::CreateImm(0)); 264 Cond.push_back(MachineOperand::CreateReg(isPPC64 ? PPC::CTR8 : PPC::CTR, 288 Cond.push_back(SecondLastInst->getOperand(0)); 289 Cond.push_back(SecondLastInst->getOperand(1)); 301 Cond 208 AnalyzeBranch(MachineBasicBlock &MBB,MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, bool AllowModify) const argument 371 InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, const SmallVectorImpl<MachineOperand> &Cond, DebugLoc DL) const argument [all...] |
/external/llvm/lib/Target/R600/ |
H A D | SIAnnotateControlFlow.cpp | 80 void handleLoopCondition(Value *Cond); 203 void SIAnnotateControlFlow::handleLoopCondition(Value *Cond) { argument 204 if (PHINode *Phi = dyn_cast<PHINode>(Cond)) { 246 } else if (Instruction *Inst = dyn_cast<Instruction>(Cond)) { 249 Value *Args[] = { Cond, PhiInserter.GetValueAtEndOfBlock(Parent) }; 266 Value *Cond = Term->getCondition(); local 268 handleLoopCondition(Cond);
|
H A D | AMDILISelLowering.cpp | 385 SDValue Cond = Op.getOperand(1); local 392 Chain, Jump, Cond);
|
/external/llvm/lib/Target/Sparc/ |
H A D | SparcInstrInfo.cpp | 130 SmallVectorImpl<MachineOperand> &Cond, 162 Cond.clear(); 183 if (Cond.empty()) { 219 Cond.push_back(MachineOperand::CreateImm(BranchCode)); 232 const SmallVectorImpl<MachineOperand> &Cond, 235 assert((Cond.size() == 1 || Cond.size() == 0) && 238 if (Cond.empty()) { 245 unsigned CC = Cond[0].getImm(); 127 AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, bool AllowModify) const argument 230 InsertBranch(MachineBasicBlock &MBB,MachineBasicBlock *TBB, MachineBasicBlock *FBB, const SmallVectorImpl<MachineOperand> &Cond, DebugLoc DL) const argument
|
/external/llvm/lib/Target/XCore/ |
H A D | XCoreInstrInfo.cpp | 189 SmallVectorImpl<MachineOperand> &Cond, 222 Cond.push_back(MachineOperand::CreateImm(BranchCode)); 223 Cond.push_back(LastInst->getOperand(0)); 244 Cond.push_back(MachineOperand::CreateImm(BranchCode)); 245 Cond.push_back(SecondLastInst->getOperand(0)); 277 const SmallVectorImpl<MachineOperand> &Cond, 281 assert((Cond.size() == 2 || Cond.size() == 0) && 285 if (Cond.empty()) { 290 unsigned Opc = GetCondBranchFromCond((XCore::CondCode)Cond[ 187 AnalyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl<MachineOperand> &Cond, bool AllowModify) const argument 275 InsertBranch(MachineBasicBlock &MBB,MachineBasicBlock *TBB, MachineBasicBlock *FBB, const SmallVectorImpl<MachineOperand> &Cond, DebugLoc DL) const argument [all...] |
/external/llvm/lib/Transforms/Utils/ |
H A D | CloneFunction.cpp | 305 ConstantInt *Cond = dyn_cast<ConstantInt>(BI->getCondition()); local 307 if (Cond == 0) { 309 Cond = dyn_cast_or_null<ConstantInt>(V); 313 if (Cond) { 314 BasicBlock *Dest = BI->getSuccessor(!Cond->getZExtValue()); 322 ConstantInt *Cond = dyn_cast<ConstantInt>(SI->getCondition()); local 323 if (Cond == 0) { // Or known constant after constant prop in the callee... 325 Cond = dyn_cast_or_null<ConstantInt>(V); 327 if (Cond) { // Constant fold to uncond branch! 328 SwitchInst::ConstCaseIt Case = SI->findCaseValue(Cond); [all...] |