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 DCasting.cpp51 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 DIntrinsicInst.cpp57 if (MDNode* MD = cast_or_null<MDNode>(getArgOperand(0)))
H A DMetadata.cpp416 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 DLLVMContextImpl.h234 return cast_or_null<MDNode>(getValPtr());
H A DModule.cpp113 return cast_or_null<GlobalValue>(getValueSymbolTable().lookup(Name));
H A DDebugInfo.cpp328 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 DOperandTraits.h139 return cast_or_null<VALUECLASS>( \
H A DInstructions.h2405 return cast_or_null<BasicBlock>((&Op<-1>() - i)->get());
/macosx-10.9.5/llvmCore-3425.0.33/utils/TableGen/
H A DDAGISelMatcherOpt.cpp421 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 DCasting.h10 // 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 DValueMapper.cpp98 BasicBlock *BB = cast_or_null<BasicBlock>(MapValue(BA->getBasicBlock(), VM,
H A DCloneFunction.cpp399 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 DValueMap.h211 KeyT Unwrap() const { return cast_or_null<KeySansPointerT>(getValPtr()); }
/macosx-10.9.5/llvmCore-3425.0.33/lib/Transforms/Scalar/
H A DLoopUnswitch.cpp320 const SwitchInst* NewInst = cast_or_null<SwitchInst>(NewI);
/macosx-10.9.5/llvmCore-3425.0.33/lib/AsmParser/
H A DLLParser.cpp757 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 DBitcodeReader.cpp665 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 DInstructionCombining.cpp1194 Instruction *I = cast_or_null<Instruction>(&*Users[i]);

Completed in 394 milliseconds