Searched refs:cast_or_null (Results 1 - 17 of 17) sorted by relevance
/macosx-10.9.5/llvmCore-3425.0.33/unittests/Support/ |
H A D | Casting.cpp | 51 return cast_or_null<foo>(this); 105 TEST(CastingTest, cast_or_null) { 106 const foo *F11 = cast_or_null<foo>(B2); 108 const foo *F12 = cast_or_null<foo>(B2); 110 const foo *F13 = cast_or_null<foo>(B4); 112 const foo *F14 = cast_or_null<foo>(fub()); // Shouldn't print. 149 //foo &F23 = cast_or_null<foo>(B1); 150 //const foo &F24 = cast_or_null<foo>(B3);
|
/macosx-10.9.5/llvmCore-3425.0.33/lib/VMCore/ |
H A D | IntrinsicInst.cpp | 57 if (MDNode* MD = cast_or_null<MDNode>(getArgOperand(0)))
|
H A D | Metadata.cpp | 416 T = T->getNumOperands() >= 2 ? cast_or_null<MDNode>(T->getOperand(1)) : 0; 423 T = T->getNumOperands() >= 2 ? cast_or_null<MDNode>(T->getOperand(1)) : 0;
|
H A D | LLVMContextImpl.h | 234 return cast_or_null<MDNode>(getValPtr());
|
H A D | Module.cpp | 113 return cast_or_null<GlobalValue>(getValueSymbolTable().lookup(Name));
|
H A D | DebugInfo.cpp | 328 const Value *V = cast_or_null<Value>(DN); 348 const Value *V = cast_or_null<Value>(DN);
|
/macosx-10.9.5/llvmCore-3425.0.33/include/llvm/ |
H A D | OperandTraits.h | 139 return cast_or_null<VALUECLASS>( \
|
H A D | Instructions.h | 2405 return cast_or_null<BasicBlock>((&Op<-1>() - i)->get());
|
/macosx-10.9.5/llvmCore-3425.0.33/utils/TableGen/ |
H A D | DAGISelMatcherOpt.cpp | 421 cast_or_null<CheckTypeMatcher>(FindNodeWithKind(NewOptionsToMatch[i], 464 cast_or_null<CheckTypeMatcher>(FindNodeWithKind(NewOptionsToMatch[i],
|
/macosx-10.9.5/llvmCore-3425.0.33/include/llvm/Support/ |
H A D | Casting.h | 10 // This file defines the isa<X>(), cast<X>(), dyn_cast<X>(), cast_or_null<X>(), 190 // on failure. It does not allow a null argument (use cast_or_null for that). 202 // cast_or_null<X> - Functionally identical to cast, except that a null value is 206 inline typename cast_retty<X, Y*>::ret_type cast_or_null(Y *Val) { function in namespace:llvm 208 assert(isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible type!");
|
/macosx-10.9.5/llvmCore-3425.0.33/lib/Transforms/Utils/ |
H A D | ValueMapper.cpp | 98 BasicBlock *BB = cast_or_null<BasicBlock>(MapValue(BA->getBasicBlock(), VM,
|
H A D | CloneFunction.cpp | 399 BasicBlock *NewBB = cast_or_null<BasicBlock>(V); 435 if (BasicBlock *MappedBlock = cast_or_null<BasicBlock>(V)) {
|
/macosx-10.9.5/llvmCore-3425.0.33/include/llvm/ADT/ |
H A D | ValueMap.h | 211 KeyT Unwrap() const { return cast_or_null<KeySansPointerT>(getValPtr()); }
|
/macosx-10.9.5/llvmCore-3425.0.33/lib/Transforms/Scalar/ |
H A D | LoopUnswitch.cpp | 320 const SwitchInst* NewInst = cast_or_null<SwitchInst>(NewI);
|
/macosx-10.9.5/llvmCore-3425.0.33/lib/AsmParser/ |
H A D | LLParser.cpp | 757 cast_or_null<GlobalValue>(M->getValueSymbolTable().lookup(Name)); 1924 return cast_or_null<BasicBlock>(GetVal(Name, 1929 return cast_or_null<BasicBlock>(GetVal(ID,
|
/macosx-10.9.5/llvmCore-3425.0.33/lib/Bitcode/Reader/ |
H A D | BitcodeReader.cpp | 665 StructType *Res = cast_or_null<StructType>(TypeList[NumRecords]); 694 StructType *Res = cast_or_null<StructType>(TypeList[NumRecords]);
|
/macosx-10.9.5/llvmCore-3425.0.33/lib/Transforms/InstCombine/ |
H A D | InstructionCombining.cpp | 1194 Instruction *I = cast_or_null<Instruction>(&*Users[i]);
|
Completed in 394 milliseconds