/external/clang/lib/CodeGen/ |
D | SanitizerMetadata.cpp | 46 llvm::ConstantAsMetadata::get(GV), LocDescr, GlobalName, in reportGlobalToASan() 47 llvm::ConstantAsMetadata::get( in reportGlobalToASan() 49 llvm::ConstantAsMetadata::get(llvm::ConstantInt::get( in reportGlobalToASan() 89 llvm::ConstantAsMetadata::get(llvm::ConstantInt::get( in getLocationMetadata() 91 llvm::ConstantAsMetadata::get(llvm::ConstantInt::get( in getLocationMetadata()
|
D | CGLoopInfo.cpp | 38 ConstantAsMetadata::get(ConstantInt::get( in createMetadata() 46 ConstantAsMetadata::get(ConstantInt::get( in createMetadata() 54 ConstantAsMetadata::get(ConstantInt::get( in createMetadata() 62 ConstantAsMetadata::get(ConstantInt::get( in createMetadata()
|
D | CodeGenFunction.cpp | 478 addressQuals.push_back(llvm::ConstantAsMetadata::get(Builder.getInt32( in GenOpenCLArgMetadata() 519 llvm::ConstantAsMetadata::get(Builder.getInt32(AddrSpc))); in GenOpenCLArgMetadata() 583 kernelMDArgs.push_back(llvm::ConstantAsMetadata::get(Fn)); in EmitOpenCLKernelMetadata() 596 llvm::ConstantAsMetadata::get(llvm::UndefValue::get( in EmitOpenCLKernelMetadata() 598 llvm::ConstantAsMetadata::get(llvm::ConstantInt::get( in EmitOpenCLKernelMetadata() 607 llvm::ConstantAsMetadata::get(Builder.getInt32(A->getXDim())), in EmitOpenCLKernelMetadata() 608 llvm::ConstantAsMetadata::get(Builder.getInt32(A->getYDim())), in EmitOpenCLKernelMetadata() 609 llvm::ConstantAsMetadata::get(Builder.getInt32(A->getZDim()))}; in EmitOpenCLKernelMetadata() 616 llvm::ConstantAsMetadata::get(Builder.getInt32(A->getXDim())), in EmitOpenCLKernelMetadata() 617 llvm::ConstantAsMetadata::get(Builder.getInt32(A->getYDim())), in EmitOpenCLKernelMetadata() [all …]
|
D | CodeGenModule.cpp | 415 llvm::ConstantAsMetadata::get(llvm::ConstantInt::get( in Release() 982 MD, llvm::ConstantAsMetadata::get(F), in CreateFunctionBitSetEntry() 983 llvm::ConstantAsMetadata::get(llvm::ConstantInt::get(Int64Ty, 0))}; in CreateFunctionBitSetEntry() 990 llvm::ConstantAsMetadata::get(TypeId), in CreateFunctionBitSetEntry() 991 llvm::ConstantAsMetadata::get(F), in CreateFunctionBitSetEntry() 992 llvm::ConstantAsMetadata::get(llvm::ConstantInt::get(Int64Ty, 0))}; in CreateFunctionBitSetEntry() 3740 llvm::Metadata *Ops[] = {llvm::ConstantAsMetadata::get(Addr), in EmitGlobalDeclMetadata() 3741 llvm::ConstantAsMetadata::get(GetPointerConstant( in EmitGlobalDeclMetadata() 3939 MD, llvm::ConstantAsMetadata::get(VTable), in CreateVTableBitSetEntry() 3940 llvm::ConstantAsMetadata::get( in CreateVTableBitSetEntry() [all …]
|
D | CGStmt.cpp | 1715 Locs.push_back(llvm::ConstantAsMetadata::get(llvm::ConstantInt::get( in getAsmSrcLocInfo() 1730 Locs.push_back(llvm::ConstantAsMetadata::get( in getAsmSrcLocInfo() 2035 llvm::ConstantAsMetadata::get(Loc))); in EmitAsmStmt()
|
D | TargetInfo.cpp | 5522 llvm::ConstantAsMetadata::get(F), llvm::MDString::get(Ctx, Name), in addNVVMMetadata() 5523 llvm::ConstantAsMetadata::get( in addNVVMMetadata() 6343 Operands.push_back(llvm::ConstantAsMetadata::get(F)); in setTargetAttributes() 6346 llvm::ConstantAsMetadata::get(llvm::Constant::getIntegerValue( in setTargetAttributes() 6349 llvm::ConstantAsMetadata::get(llvm::Constant::getIntegerValue( in setTargetAttributes() 6352 llvm::ConstantAsMetadata::get(llvm::Constant::getIntegerValue( in setTargetAttributes() 6359 llvm::ConstantAsMetadata::get(llvm::ConstantInt::getTrue(Context))); in setTargetAttributes() 7110 MDVals.push_back(llvm::ConstantAsMetadata::get(GV)); in emitTargetMD()
|
/external/llvm/lib/IR/ |
D | Module.cpp | 347 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Behavior)), in addModuleFlag() 353 addModuleFlag(Behavior, Key, ConstantAsMetadata::get(Val)); in addModuleFlag() 444 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("Dwarf Version")); in getDwarfVersion() 451 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("CodeView")); in getCodeViewFlag() 464 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIC Level")); in getPICLevel() 483 cast_or_null<ConstantAsMetadata>(getModuleFlag("MaxFunctionCount")); in getMaximumFunctionCount()
|
D | MDBuilder.cpp | 24 ConstantAsMetadata *MDBuilder::createConstant(Constant *C) { in createConstant() 25 return ConstantAsMetadata::get(C); in createConstant()
|
D | TypeFinder.cpp | 169 if (auto *C = dyn_cast<ConstantAsMetadata>(Op)) { in incorporateMDNode()
|
D | Metadata.cpp | 68 if (auto *C = dyn_cast<ConstantAsMetadata>(N->getOperand(0))) in canonicalizeMetadataForValue() 263 Entry = new ConstantAsMetadata(C); in get() 322 MD->replaceAllUsesWith(ConstantAsMetadata::get(C)); in handleRAUW() 954 MDs.push_back(ConstantAsMetadata::get(I)); in getMostGenericRange()
|
D | AutoUpgrade.cpp | 398 ConstantAsMetadata::get(ConstantInt::get(Type::getInt32Ty(C), 1))); in UpgradeIntrinsicCall() 828 ConstantAsMetadata::get(Constant::getNullValue( in UpgradeInstWithTBAATag() 834 Metadata *Elts[] = {MD, MD, ConstantAsMetadata::get(Constant::getNullValue( in UpgradeInstWithTBAATag()
|
D | DIBuilder.cpp | 304 static ConstantAsMetadata *getConstantOrNull(Constant *C) { in getConstantOrNull() 306 return ConstantAsMetadata::get(C); in getConstantOrNull()
|
/external/llvm/include/llvm/IR/ |
D | Metadata.h | 272 static ConstantAsMetadata *getConstant(Value *C) { in getConstant() 273 return cast<ConstantAsMetadata>(get(C)); in getConstant() 280 static ConstantAsMetadata *getConstantIfExists(Value *C) { in getConstantIfExists() 281 return cast_or_null<ConstantAsMetadata>(getIfExists(C)); in getConstantIfExists() 311 class ConstantAsMetadata : public ValueAsMetadata { 314 ConstantAsMetadata(Constant *C) in ConstantAsMetadata() function 318 static ConstantAsMetadata *get(Constant *C) { in get() 321 static ConstantAsMetadata *getIfExists(Constant *C) { in getIfExists() 437 if (auto *V = dyn_cast<ConstantAsMetadata>(MD)) in hasa() 454 return cast<X>(cast<ConstantAsMetadata>(MD)->getValue()); in extract() [all …]
|
D | MDBuilder.h | 28 class ConstantAsMetadata; variable 42 ConstantAsMetadata *createConstant(Constant *C);
|
D | Metadata.def | 78 HANDLE_METADATA_LEAF(ConstantAsMetadata)
|
D | DebugInfoMetadata.h | 740 if (auto *C = cast_or_null<ConstantAsMetadata>(getExtraData())) 1791 Variable ? ConstantAsMetadata::get(Variable) : nullptr, 1831 if (auto *C = cast_or_null<ConstantAsMetadata>(getRawVariable()))
|
/external/llvm/lib/Transforms/IPO/ |
D | LowerBitSets.cpp | 310 cast<ConstantAsMetadata>(Op->getOperand(1))->getValue(); in buildBitSet() 317 cast<ConstantInt>(cast<ConstantAsMetadata>(Op->getOperand(2)) in buildBitSet() 632 auto OpConstMD = dyn_cast<ConstantAsMetadata>(Op->getOperand(1)); in verifyBitSetMDNode() 647 auto OffsetConstMD = dyn_cast<ConstantAsMetadata>(Op->getOperand(2)); in verifyBitSetMDNode() 863 cast<ConstantAsMetadata>(Op->getOperand(1))->getValue()); in buildBitSetsFromDisjointSet() 979 cast<ConstantAsMetadata>(Op->getOperand(1))->getValue()); in buildBitSets()
|
D | CrossDSOCFI.cpp | 152 Ctx, ConstantAsMetadata::get(CaseTypeId))}); in buildCFICheck()
|
/external/llvm/unittests/IR/ |
D | MetadataTest.cpp | 107 ConstantAsMetadata *getConstantAsMetadata() { in getConstantAsMetadata() 108 return ConstantAsMetadata::get(getConstant()); in getConstantAsMetadata() 177 ConstantAsMetadata *CI = ConstantAsMetadata::get( in TEST_F() 266 Metadata *Args[] = {ConstantAsMetadata::get(C), S, nullptr, N0, N1, N2}; in TEST_F() 325 Metadata *Args[] = {ConstantAsMetadata::get(C), S, nullptr, N0, N1, N2}; in TEST_F() 675 ConstantAsMetadata *Op = ConstantAsMetadata::get(GV.get()); in TEST_F() 2033 auto *MD = ConstantAsMetadata::get(C); in TEST_F() 2064 ConstantAsMetadata *CI = ConstantAsMetadata::get( in TEST_F() 2123 ConstantAsMetadata *C = in TEST() 2124 ConstantAsMetadata::get(ConstantInt::get(Type::getInt32Ty(Context), 1)); in TEST() [all …]
|
/external/llvm/bindings/go/llvm/ |
D | IRBindings.cpp | 53 return wrap(ConstantAsMetadata::get(unwrap<Constant>(C))); in LLVMConstantAsMetadata()
|
/external/llvm/lib/Bitcode/Writer/ |
D | ValueEnumerator.cpp | 518 (isa<MDNode>(MD) || isa<MDString>(MD) || isa<ConstantAsMetadata>(MD)) && in EnumerateMetadata() 531 else if (auto *C = dyn_cast<ConstantAsMetadata>(MD)) in EnumerateMetadata()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUOpenCLImageTypeLoweringPass.cpp | 308 KernelMDArgs.push_back(ConstantAsMetadata::get(NewF)); in addImplicitArgs()
|
/external/llvm/lib/Analysis/ |
D | TypeBasedAliasAnalysis.cpp | 455 ConstantAsMetadata::get(ConstantInt::get(Int64, 0))}; in getMostGenericTBAA()
|
/external/llvm/lib/Transforms/Utils/ |
D | ValueMapper.cpp | 332 if (isa<ConstantAsMetadata>(MD)) in MapMetadataImpl()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopUnswitch.cpp | 704 auto *ValT = cast_or_null<ConstantAsMetadata>( in copyMetadata() 706 auto *ValF = cast_or_null<ConstantAsMetadata>( in copyMetadata()
|