Home
last modified time | relevance | path

Searched refs:ConstantAsMetadata (Results 1 – 25 of 35) sorted by relevance

12

/external/clang/lib/CodeGen/
DSanitizerMetadata.cpp45 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()
DCGLoopInfo.cpp35 ConstantAsMetadata::get(ConstantInt::get( in createMetadata()
43 ConstantAsMetadata::get(ConstantInt::get( in createMetadata()
52 ConstantAsMetadata::get(ConstantInt::get( in createMetadata()
DCodeGenFunction.cpp420 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 …]
DCGVTables.cpp851 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()
DCGStmt.cpp663 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()
DTargetInfo.cpp5124 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/
DMetadata.h260 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 …]
DMDBuilder.h28 class ConstantAsMetadata; variable
42 ConstantAsMetadata *createConstant(Constant *C);
DMetadata.def59 HANDLE_METADATA_LEAF(ConstantAsMetadata)
DDebugInfoMetadata.h760 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/
DModule.cpp344 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()
DMDBuilder.cpp24 ConstantAsMetadata *MDBuilder::createConstant(Constant *C) { in createConstant()
25 return ConstantAsMetadata::get(C); in createConstant()
DMetadata.cpp68 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()
DTypeFinder.cpp172 if (auto *C = dyn_cast<ConstantAsMetadata>(Op)) { in incorporateMDNode()
DAutoUpgrade.cpp456 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()
DDebugInfoMetadata.cpp379 replaceFunction(F ? ConstantAsMetadata::get(F) in replaceFunction()
380 : static_cast<ConstantAsMetadata *>(nullptr)); in replaceFunction()
DDIBuilder.cpp295 static ConstantAsMetadata *getConstantOrNull(Constant *C) { in getConstantOrNull()
297 return ConstantAsMetadata::get(C); in getConstantOrNull()
DCore.cpp571 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/
DLowerBitSets.cpp275 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/
DMetadataTest.cpp105 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/
DIRBindings.cpp53 return wrap(ConstantAsMetadata::get(unwrap<Constant>(C))); in LLVMConstantAsMetadata()
/external/llvm/lib/Bitcode/Writer/
DValueEnumerator.cpp529 (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/
DValueMapper.cpp273 if (isa<ConstantAsMetadata>(MD)) in MapMetadataImpl()
/external/llvm/lib/Analysis/
DTypeBasedAliasAnalysis.cpp622 ConstantAsMetadata::get(ConstantInt::get(Int64, 0))}; in getMostGenericTBAA()
/external/llvm/lib/Transforms/Scalar/
DRewriteStatepointsForGC.cpp738 auto MDConst = ConstantAsMetadata::get(const_1); in findBasePointer()
754 auto MDConst = ConstantAsMetadata::get(const_1); in findBasePointer()

12