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

1 2 3 4 5

  /external/swiftshader/third_party/LLVM/unittests/Support/
Casting.cpp 51 return cast_or_null<foo>(this);
102 TEST(CastingTest, cast_or_null) {
103 const foo *F11 = cast_or_null<foo>(B2);
105 const foo *F12 = cast_or_null<foo>(B2);
107 const foo *F13 = cast_or_null<foo>(B4);
109 const foo *F14 = cast_or_null<foo>(fub()); // Shouldn't print.
145 //foo &F23 = cast_or_null<foo>(B1);
146 //const foo &F24 = cast_or_null<foo>(B3);
  /external/clang/include/clang/AST/
ExprOpenMP.h 91 Expr *getLowerBound() { return cast_or_null<Expr>(SubExprs[LOWER_BOUND]); }
93 return cast_or_null<Expr>(SubExprs[LOWER_BOUND]);
99 Expr *getLength() { return cast_or_null<Expr>(SubExprs[LENGTH]); }
100 const Expr *getLength() const { return cast_or_null<Expr>(SubExprs[LENGTH]); }
StmtCXX.h 156 return cast_or_null<DeclStmt>(SubExprs[BEGINSTMT]);
158 DeclStmt *getEndStmt() { return cast_or_null<DeclStmt>(SubExprs[ENDSTMT]); }
159 Expr *getCond() { return cast_or_null<Expr>(SubExprs[COND]); }
160 Expr *getInc() { return cast_or_null<Expr>(SubExprs[INC]); }
168 return cast_or_null<DeclStmt>(SubExprs[BEGINSTMT]);
171 return cast_or_null<DeclStmt>(SubExprs[ENDSTMT]);
174 return cast_or_null<Expr>(SubExprs[COND]);
177 return cast_or_null<Expr>(SubExprs[INC]);
StmtObjC.h 208 return cast_or_null<ObjCAtCatchStmt>(getStmts()[I + 1]);
214 return cast_or_null<ObjCAtCatchStmt>(getStmts()[I + 1]);
228 return cast_or_null<ObjCAtFinallyStmt>(getStmts()[1 + NumCatchStmts]);
234 return cast_or_null<ObjCAtFinallyStmt>(getStmts()[1 + NumCatchStmts]);
DeclTemplate.h     [all...]
DeclFriend.h 89 return cast_or_null<FriendDecl>(NextFriend.get(nullptr));
  /external/llvm/unittests/Support/
Casting.cpp 55 return cast_or_null<foo>(this);
128 TEST(CastingTest, cast_or_null) {
129 const foo *F11 = cast_or_null<foo>(B2);
131 const foo *F12 = cast_or_null<foo>(B2);
133 const foo *F13 = cast_or_null<foo>(B4);
135 const foo *F14 = cast_or_null<foo>(fub()); // Shouldn't print.
172 //foo &F23 = cast_or_null<foo>(B1);
173 //const foo &F24 = cast_or_null<foo>(B3);
307 EXPECT_TRUE(cast_or_null<pointer_wrappers::Derived>(MN) == nullptr);
308 EXPECT_TRUE(cast_or_null<pointer_wrappers::Derived>(CN) == nullptr)
    [all...]
  /external/clang/include/clang/Basic/
LLVM.h 59 using llvm::cast_or_null;
  /external/swiftshader/third_party/LLVM/lib/VMCore/
IntrinsicInst.cpp 57 if (MDNode* MD = cast_or_null<MDNode>(getArgOperand(0)))
  /external/clang/lib/AST/
DeclOpenMP.cpp 77 return cast_or_null<OMPDeclareReductionDecl>(
82 return cast_or_null<OMPDeclareReductionDecl>(
DeclFriend.cpp 23 return cast_or_null<FriendDecl>(
ASTImporter.cpp     [all...]
  /external/llvm/tools/opt/
BreakpointPrinter.cpp 50 auto *SP = cast_or_null<DISubprogram>(NMD->getOperand(i));
  /external/llvm/lib/IR/
DebugLoc.cpp 22 return cast_or_null<DILocation>(Loc.get());
Module.cpp 92 return cast_or_null<GlobalValue>(getValueSymbolTable().lookup(Name));
467 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("Dwarf Version"));
474 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("CodeView"));
487 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIC Level"));
501 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIE Level"));
DIBuilder.cpp 371 cast_or_null<MDTuple>(TemplateParams), UniqueIdentifier);
543 VMContext, cast_or_null<DIScope>(Context), Name, LinkageName, F,
545 cast_or_null<DIDerivedType>(Decl));
557 VMContext, cast_or_null<DIScope>(Context), Name, LinkageName, F,
559 cast_or_null<DIDerivedType>(Decl))
575 DILocalVariable::get(VMContext, cast_or_null<DILocalScope>(Context), Name,
    [all...]
  /external/llvm/lib/Transforms/Scalar/
LoopSimplifyCFG.cpp 48 BasicBlock *Succ = cast_or_null<BasicBlock>(Block);
  /external/llvm/include/llvm/IR/
DebugInfoMetadata.h 76 T *resolve() const { return const_cast<T *>(cast_or_null<T>(MD)); }
149 return cast_or_null<Ty>(getOperand(I));
407 DIFile *getFile() const { return cast_or_null<DIFile>(getRawFile()); }
746 if (auto *C = cast_or_null<ConstantAsMetadata>(getExtraData()))
752 if (auto *C = cast_or_null<ConstantAsMetadata>(getExtraData()))
    [all...]
OperandTraits.h 139 return cast_or_null<VALUECLASS>( \
Metadata.h 341 return cast_or_null<ConstantAsMetadata>(getIfExists(C));
344 return cast_or_null<LocalAsMetadata>(getIfExists(Local));
458 /// mdconst::extract_or_null <=> cast_or_null
525 /// As an analogue to \a cast_or_null(), extract the \a Value subclass \c X
530 if (auto *V = cast_or_null<ConstantAsMetadata>(MD))
    [all...]
  /external/llvm/lib/Analysis/
TypeBasedAliasAnalysis.cpp 386 MDNode *Tag = cast_or_null<MDNode>(getOperand(1));
406 A = cast_or_null<MDNode>(A->getOperand(1));
409 B = cast_or_null<MDNode>(B->getOperand(1));
420 T = T->getNumOperands() >= 2 ? cast_or_null<MDNode>(T->getOperand(1))
430 T = T->getNumOperands() >= 2 ? cast_or_null<MDNode>(T->getOperand(1))
  /external/llvm/include/llvm/Support/
Casting.h 10 // This file defines the isa<X>(), cast<X>(), dyn_cast<X>(), cast_or_null<X>(),
214 // on failure. It does not allow a null argument (use cast_or_null for that).
242 // cast_or_null<X> - Functionally identical to cast, except that a null value is
248 cast_or_null(const Y &Val) { function in namespace:llvm
251 assert(isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible type!");
258 cast_or_null(Y &Val) { function in namespace:llvm
261 assert(isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible type!");
267 cast_or_null(Y *Val) { function in namespace:llvm
269 assert(isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible type!");
  /external/swiftshader/third_party/LLVM/include/llvm/
OperandTraits.h 139 return cast_or_null<VALUECLASS>( \
  /external/llvm/lib/Transforms/Utils/
ValueMapper.cpp 138 return cast_or_null<Constant>(mapValue(C));
501 BB = cast_or_null<BasicBlock>(mapValue(BA.getBasicBlock()));
849 BasicBlock *BB = cast_or_null<BasicBlock>(mapValue(DBB.OldBB));
884 MDNode *New = cast_or_null<MDNode>(mapMetadata(Old));
    [all...]
  /external/clang/lib/Analysis/
AnalysisDeclContext.cpp 391 LOC *L = cast_or_null<LOC>(Contexts.FindNodeOrInsertPos(ID, InsertPos));
409 cast_or_null<StackFrameContext>(Contexts.FindNodeOrInsertPos(ID, InsertPos));
433 cast_or_null<BlockInvocationContext>(Contexts.FindNodeOrInsertPos(ID,

Completed in 224 milliseconds

1 2 3 4 5