/external/clang/lib/CodeGen/ |
D | SanitizerMetadata.cpp | 45 llvm::ConstantAsMetadata::get(GV), LocDescr, GlobalName, in reportGlobalToASan() 46 llvm::ConstantAsMetadata::get( in reportGlobalToASan() 48 llvm::ConstantAsMetadata::get(llvm::ConstantInt::get( in reportGlobalToASan() 86 llvm::ConstantAsMetadata::get(llvm::ConstantInt::get( in getLocationMetadata() 88 llvm::ConstantAsMetadata::get(llvm::ConstantInt::get( in getLocationMetadata()
|
D | CGLoopInfo.cpp | 35 ConstantAsMetadata::get(ConstantInt::get( in createMetadata() 43 ConstantAsMetadata::get(ConstantInt::get( in createMetadata() 52 ConstantAsMetadata::get(ConstantInt::get( in createMetadata()
|
D | CodeGenFunction.cpp | 420 addressQuals.push_back(llvm::ConstantAsMetadata::get(Builder.getInt32( in GenOpenCLArgMetadata() 461 llvm::ConstantAsMetadata::get(Builder.getInt32(AddrSpc))); in GenOpenCLArgMetadata() 525 kernelMDArgs.push_back(llvm::ConstantAsMetadata::get(Fn)); in EmitOpenCLKernelMetadata() 538 llvm::ConstantAsMetadata::get(llvm::UndefValue::get( in EmitOpenCLKernelMetadata() 540 llvm::ConstantAsMetadata::get(llvm::ConstantInt::get( in EmitOpenCLKernelMetadata() 549 llvm::ConstantAsMetadata::get(Builder.getInt32(A->getXDim())), in EmitOpenCLKernelMetadata() 550 llvm::ConstantAsMetadata::get(Builder.getInt32(A->getYDim())), in EmitOpenCLKernelMetadata() 551 llvm::ConstantAsMetadata::get(Builder.getInt32(A->getZDim()))}; in EmitOpenCLKernelMetadata() 558 llvm::ConstantAsMetadata::get(Builder.getInt32(A->getXDim())), in EmitOpenCLKernelMetadata() 559 llvm::ConstantAsMetadata::get(Builder.getInt32(A->getYDim())), in EmitOpenCLKernelMetadata() [all …]
|
D | CGVTables.cpp | 851 llvm::Metadata *VTableMD = llvm::ConstantAsMetadata::get(VTable); in EmitVTableBitSetEntries() 872 llvm::ConstantAsMetadata::get( in EmitVTableBitSetEntries() 893 cast<llvm::ConstantAsMetadata>(T1->getOperand(2)) in EmitVTableBitSetEntries() 896 cast<llvm::ConstantAsMetadata>(T2->getOperand(2)) in EmitVTableBitSetEntries()
|
D | CGStmt.cpp | 663 OpValues.push_back(llvm::ConstantAsMetadata::get(Value)); in EmitCondBrHints() 1785 Locs.push_back(llvm::ConstantAsMetadata::get(llvm::ConstantInt::get( in getAsmSrcLocInfo() 1798 Locs.push_back(llvm::ConstantAsMetadata::get( in getAsmSrcLocInfo() 2071 llvm::ConstantAsMetadata::get(Loc))); in EmitAsmStmt()
|
D | TargetInfo.cpp | 5124 llvm::ConstantAsMetadata::get(F), llvm::MDString::get(Ctx, Name), in addNVVMMetadata() 5125 llvm::ConstantAsMetadata::get( in addNVVMMetadata() 5850 Operands.push_back(llvm::ConstantAsMetadata::get(F)); in SetTargetAttributes() 5853 llvm::ConstantAsMetadata::get(llvm::Constant::getIntegerValue( in SetTargetAttributes() 5856 llvm::ConstantAsMetadata::get(llvm::Constant::getIntegerValue( in SetTargetAttributes() 5859 llvm::ConstantAsMetadata::get(llvm::Constant::getIntegerValue( in SetTargetAttributes() 5866 llvm::ConstantAsMetadata::get(llvm::ConstantInt::getTrue(Context))); in SetTargetAttributes() 6626 MDVals.push_back(llvm::ConstantAsMetadata::get(GV)); in emitTargetMD()
|
/external/llvm/include/llvm/IR/ |
D | Metadata.h | 260 static ConstantAsMetadata *getConstant(Value *C) { in getConstant() 261 return cast<ConstantAsMetadata>(get(C)); in getConstant() 268 static ConstantAsMetadata *getConstantIfExists(Value *C) { in getConstantIfExists() 269 return cast_or_null<ConstantAsMetadata>(getIfExists(C)); in getConstantIfExists() 299 class ConstantAsMetadata : public ValueAsMetadata { 302 ConstantAsMetadata(Constant *C) in ConstantAsMetadata() function 306 static ConstantAsMetadata *get(Constant *C) { in get() 309 static ConstantAsMetadata *getIfExists(Constant *C) { in getIfExists() 425 if (auto *V = dyn_cast<ConstantAsMetadata>(MD)) in hasa() 442 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 | 59 HANDLE_METADATA_LEAF(ConstantAsMetadata)
|
D | DebugInfoMetadata.h | 760 if (auto *C = cast_or_null<ConstantAsMetadata>(getExtraData())) 1280 Function ? ConstantAsMetadata::get(Function) : nullptr, 1387 if (auto *C = cast_or_null<ConstantAsMetadata>(getRawFunction())) 1423 void replaceFunction(ConstantAsMetadata *MD) { replaceOperandWith(7, MD); } 1801 Variable ? ConstantAsMetadata::get(Variable) : nullptr, 1841 if (auto *C = cast_or_null<ConstantAsMetadata>(getRawVariable()))
|
/external/llvm/lib/IR/ |
D | Module.cpp | 344 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Behavior)), in addModuleFlag() 350 addModuleFlag(Behavior, Key, ConstantAsMetadata::get(Val)); in addModuleFlag() 459 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("Dwarf Version")); in getDwarfVersion() 472 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIC Level")); in getPICLevel()
|
D | MDBuilder.cpp | 24 ConstantAsMetadata *MDBuilder::createConstant(Constant *C) { in createConstant() 25 return ConstantAsMetadata::get(C); in createConstant()
|
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() 925 MDs.push_back(ConstantAsMetadata::get(I)); in getMostGenericRange()
|
D | TypeFinder.cpp | 172 if (auto *C = dyn_cast<ConstantAsMetadata>(Op)) { in incorporateMDNode()
|
D | AutoUpgrade.cpp | 456 ConstantAsMetadata::get(ConstantInt::get(Type::getInt32Ty(C), 1))); in UpgradeIntrinsicCall() 856 ConstantAsMetadata::get(Constant::getNullValue( in UpgradeInstWithTBAATag() 862 Metadata *Elts[] = {MD, MD, ConstantAsMetadata::get(Constant::getNullValue( in UpgradeInstWithTBAATag()
|
D | DebugInfoMetadata.cpp | 379 replaceFunction(F ? ConstantAsMetadata::get(F) in replaceFunction() 380 : static_cast<ConstantAsMetadata *>(nullptr)); in replaceFunction()
|
D | DIBuilder.cpp | 295 static ConstantAsMetadata *getConstantOrNull(Constant *C) { in getConstantOrNull() 297 return ConstantAsMetadata::get(C); in getConstantOrNull()
|
D | Core.cpp | 571 assert((isa<MDNode>(MD) || isa<ConstantAsMetadata>(MD)) && in extractMDNode() 641 if (auto *C = dyn_cast<ConstantAsMetadata>(Op)) in getMDNodeOperandImpl() 733 MD = ConstantAsMetadata::get(C); in LLVMMDNodeInContext()
|
/external/llvm/lib/Transforms/IPO/ |
D | LowerBitSets.cpp | 275 cast<ConstantAsMetadata>(Op->getOperand(1))->getValue()); in buildBitSet() 277 cast<ConstantInt>(cast<ConstantAsMetadata>(Op->getOperand(2)) in buildBitSet() 619 auto OpConstMD = dyn_cast<ConstantAsMetadata>(Op->getOperand(1)); in buildBitSets() 626 auto OffsetConstMD = dyn_cast<ConstantAsMetadata>(Op->getOperand(2)); in buildBitSets() 679 cast<ConstantAsMetadata>(Op->getOperand(1))->getValue()); in buildBitSets()
|
/external/llvm/unittests/IR/ |
D | MetadataTest.cpp | 105 ConstantAsMetadata *getConstantAsMetadata() { in getConstantAsMetadata() 106 return ConstantAsMetadata::get(getConstant()); in getConstantAsMetadata() 175 ConstantAsMetadata *CI = ConstantAsMetadata::get( in TEST_F() 264 Metadata *Args[] = {ConstantAsMetadata::get(C), S, nullptr, N0, N1, N2}; in TEST_F() 323 Metadata *Args[] = {ConstantAsMetadata::get(C), S, nullptr, N0, N1, N2}; in TEST_F() 661 ConstantAsMetadata *Op = ConstantAsMetadata::get(GV.get()); in TEST_F() 2016 auto *MD = ConstantAsMetadata::get(C); in TEST_F() 2047 ConstantAsMetadata *CI = ConstantAsMetadata::get( in TEST_F() 2106 ConstantAsMetadata *C = in TEST() 2107 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 | 529 (isa<MDNode>(MD) || isa<MDString>(MD) || isa<ConstantAsMetadata>(MD)) && in EnumerateMetadata() 542 else if (auto *C = dyn_cast<ConstantAsMetadata>(MD)) in EnumerateMetadata()
|
/external/llvm/lib/Transforms/Utils/ |
D | ValueMapper.cpp | 273 if (isa<ConstantAsMetadata>(MD)) in MapMetadataImpl()
|
/external/llvm/lib/Analysis/ |
D | TypeBasedAliasAnalysis.cpp | 622 ConstantAsMetadata::get(ConstantInt::get(Int64, 0))}; in getMostGenericTBAA()
|
/external/llvm/lib/Transforms/Scalar/ |
D | RewriteStatepointsForGC.cpp | 738 auto MDConst = ConstantAsMetadata::get(const_1); in findBasePointer() 754 auto MDConst = ConstantAsMetadata::get(const_1); in findBasePointer()
|