Home
last modified time | relevance | path

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

1234

/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DProfileSummary.cpp33 ConstantAsMetadata::get(ConstantInt::get(Int64Ty, Val))}; in getKeyValMD()
56 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Entry.Cutoff)), in getDetailedSummaryMD()
57 ConstantAsMetadata::get(ConstantInt::get(Int64Ty, Entry.MinCount)), in getDetailedSummaryMD()
58 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Entry.NumCounts))}; in getDetailedSummaryMD()
92 ConstantAsMetadata *ValMD = dyn_cast<ConstantAsMetadata>(MD->getOperand(1)); in getVal()
128 ConstantAsMetadata *Op0 = in getSummaryFromMD()
129 dyn_cast<ConstantAsMetadata>(EntryMD->getOperand(0)); in getSummaryFromMD()
130 ConstantAsMetadata *Op1 = in getSummaryFromMD()
131 dyn_cast<ConstantAsMetadata>(EntryMD->getOperand(1)); in getSummaryFromMD()
132 ConstantAsMetadata *Op2 = in getSummaryFromMD()
[all …]
DModule.cpp333 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Behavior)), in addModuleFlag()
339 addModuleFlag(Behavior, Key, ConstantAsMetadata::get(Val)); in addModuleFlag()
447 cast_or_null<ConstantAsMetadata>(getModuleFlag("NumRegisterParameters")); in getNumberRegisterParameters()
454 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("Dwarf Version")); in getDwarfVersion()
461 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("CodeView")); in getCodeViewFlag()
481 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIC Level")); in getPICLevel()
495 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIE Level")); in getPIELevel()
521 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("RtLibUseGOT")); in getRtLibUseGOT()
DMetadata.cpp99 if (auto *C = dyn_cast<ConstantAsMetadata>(N->getOperand(0))) in canonicalizeMetadataForValue()
360 Entry = new ConstantAsMetadata(C); in get()
417 MD->replaceAllUsesWith(ConstantAsMetadata::get(C)); in handleRAUW()
716 if (New == this || (!New && Old && isa<ConstantAsMetadata>(Old))) { in handleChangedOperand()
1046 MDs.push_back(ConstantAsMetadata::get(I)); in getMostGenericRange()
1461 cast<ConstantAsMetadata>(MD.second->getOperand(0))->getValue()); in copyMetadata()
1463 auto *NewOffsetMD = ConstantAsMetadata::get(ConstantInt::get( in copyMetadata()
1499 {ConstantAsMetadata::get(ConstantInt::get( in addTypeMetadata()
/external/llvm/lib/IR/
DProfileSummary.cpp33 ConstantAsMetadata::get(ConstantInt::get(Int64Ty, Val))}; in getKeyValMD()
56 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Entry.Cutoff)), in getDetailedSummaryMD()
57 ConstantAsMetadata::get(ConstantInt::get(Int64Ty, Entry.MinCount)), in getDetailedSummaryMD()
58 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Entry.NumCounts))}; in getDetailedSummaryMD()
94 ConstantAsMetadata *ValMD = dyn_cast<ConstantAsMetadata>(MD->getOperand(1)); in getVal()
130 ConstantAsMetadata *Op0 = in getSummaryFromMD()
131 dyn_cast<ConstantAsMetadata>(EntryMD->getOperand(0)); in getSummaryFromMD()
132 ConstantAsMetadata *Op1 = in getSummaryFromMD()
133 dyn_cast<ConstantAsMetadata>(EntryMD->getOperand(1)); in getSummaryFromMD()
134 ConstantAsMetadata *Op2 = in getSummaryFromMD()
[all …]
DModule.cpp354 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Behavior)), in addModuleFlag()
360 addModuleFlag(Behavior, Key, ConstantAsMetadata::get(Val)); in addModuleFlag()
467 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("Dwarf Version")); in getDwarfVersion()
474 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("CodeView")); in getCodeViewFlag()
487 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIC Level")); in getPICLevel()
501 auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIE Level")); in getPIELevel()
DMDBuilder.cpp24 ConstantAsMetadata *MDBuilder::createConstant(Constant *C) { in createConstant()
25 return ConstantAsMetadata::get(C); in createConstant()
/external/clang/lib/CodeGen/
DSanitizerMetadata.cpp46 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()
DCGLoopInfo.cpp45 ConstantAsMetadata::get(ConstantInt::get( in createMetadata()
53 ConstantAsMetadata::get(ConstantInt::get( in createMetadata()
61 ConstantAsMetadata::get(ConstantInt::get( in createMetadata()
69 ConstantAsMetadata::get(ConstantInt::get( in createMetadata()
90 ConstantAsMetadata::get(ConstantInt::get( in createMetadata()
DCodeGenFunction.cpp478 addressQuals.push_back(llvm::ConstantAsMetadata::get(Builder.getInt32( in GenOpenCLArgMetadata()
520 llvm::ConstantAsMetadata::get(Builder.getInt32(AddrSpc))); in GenOpenCLArgMetadata()
612 llvm::ConstantAsMetadata::get(llvm::UndefValue::get( in EmitOpenCLKernelMetadata()
614 llvm::ConstantAsMetadata::get(llvm::ConstantInt::get( in EmitOpenCLKernelMetadata()
622 llvm::ConstantAsMetadata::get(Builder.getInt32(A->getXDim())), in EmitOpenCLKernelMetadata()
623 llvm::ConstantAsMetadata::get(Builder.getInt32(A->getYDim())), in EmitOpenCLKernelMetadata()
624 llvm::ConstantAsMetadata::get(Builder.getInt32(A->getZDim()))}; in EmitOpenCLKernelMetadata()
630 llvm::ConstantAsMetadata::get(Builder.getInt32(A->getXDim())), in EmitOpenCLKernelMetadata()
631 llvm::ConstantAsMetadata::get(Builder.getInt32(A->getYDim())), in EmitOpenCLKernelMetadata()
632 llvm::ConstantAsMetadata::get(Builder.getInt32(A->getZDim()))}; in EmitOpenCLKernelMetadata()
/external/spirv-llvm/lib/SPIRV/
DSPIRVMDBuilder.h72 V.push_back(ConstantAsMetadata::get(getUInt32(&B.M, I))); in add()
76 V.push_back(ConstantAsMetadata::get(getUInt16(&B.M, I))); in addU16()
84 V.push_back(ConstantAsMetadata::get(F)); in add()
/external/llvm/include/llvm/IR/
DMetadata.h332 static ConstantAsMetadata *getConstant(Value *C) { in getConstant()
333 return cast<ConstantAsMetadata>(get(C)); in getConstant()
340 static ConstantAsMetadata *getConstantIfExists(Value *C) { in getConstantIfExists()
341 return cast_or_null<ConstantAsMetadata>(getIfExists(C)); in getConstantIfExists()
371 class ConstantAsMetadata : public ValueAsMetadata {
374 ConstantAsMetadata(Constant *C) in ConstantAsMetadata() function
378 static ConstantAsMetadata *get(Constant *C) { in get()
381 static ConstantAsMetadata *getIfExists(Constant *C) { in getIfExists()
497 if (auto *V = dyn_cast<ConstantAsMetadata>(MD)) in hasa()
514 return cast<X>(cast<ConstantAsMetadata>(MD)->getValue()); in extract()
[all …]
DMDBuilder.h28 class ConstantAsMetadata; variable
42 ConstantAsMetadata *createConstant(Constant *C);
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DMetadata.h346 static ConstantAsMetadata *getConstant(Value *C) { in getConstant()
347 return cast<ConstantAsMetadata>(get(C)); in getConstant()
354 static ConstantAsMetadata *getConstantIfExists(Value *C) { in getConstantIfExists()
355 return cast_or_null<ConstantAsMetadata>(getIfExists(C)); in getConstantIfExists()
385 class ConstantAsMetadata : public ValueAsMetadata {
388 ConstantAsMetadata(Constant *C) in ConstantAsMetadata() function
392 static ConstantAsMetadata *get(Constant *C) { in get()
396 static ConstantAsMetadata *getIfExists(Constant *C) { in getIfExists()
515 if (auto *V = dyn_cast<ConstantAsMetadata>(MD)) in hasa()
532 return cast<X>(cast<ConstantAsMetadata>(MD)->getValue()); in extract()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DMetadata.h359 static ConstantAsMetadata *getConstant(Value *C) { in getConstant()
360 return cast<ConstantAsMetadata>(get(C)); in getConstant()
369 static ConstantAsMetadata *getConstantIfExists(Value *C) { in getConstantIfExists()
370 return cast_or_null<ConstantAsMetadata>(getIfExists(C)); in getConstantIfExists()
401 class ConstantAsMetadata : public ValueAsMetadata {
404 ConstantAsMetadata(Constant *C) in ConstantAsMetadata() function
408 static ConstantAsMetadata *get(Constant *C) { in get()
412 static ConstantAsMetadata *getIfExists(Constant *C) { in getIfExists()
531 if (auto *V = dyn_cast<ConstantAsMetadata>(MD)) in hasa()
548 return cast<X>(cast<ConstantAsMetadata>(MD)->getValue()); in extract()
[all …]
DMDBuilder.h30 class ConstantAsMetadata; variable
45 ConstantAsMetadata *createConstant(Constant *C);
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Transforms/Utils/
DValueMapperTest.cpp80 Metadata *Ops1[] = {T0.get(), ConstantAsMetadata::get(G0.get())}; in TEST()
101 EXPECT_EQ(ConstantAsMetadata::get(G1.get()), MappedN1->getOperand(1)); in TEST()
239 auto *CAM = ConstantAsMetadata::get(F.get()); in TEST()
262 EXPECT_EQ(F2.get(), cast<ConstantAsMetadata>(F2MD)->getValue()); in TEST()
345 EXPECT_TRUE(isa<ConstantAsMetadata>(MDC->getMetadata())); in TEST()
/external/llvm/unittests/Transforms/Utils/
DValueMapperTest.cpp80 Metadata *Ops1[] = {T0.get(), ConstantAsMetadata::get(G0.get())}; in TEST()
101 EXPECT_EQ(ConstantAsMetadata::get(G1.get()), MappedN1->getOperand(1)); in TEST()
239 auto *CAM = ConstantAsMetadata::get(F.get()); in TEST()
262 EXPECT_EQ(F2.get(), cast<ConstantAsMetadata>(F2MD)->getValue()); in TEST()
345 EXPECT_TRUE(isa<ConstantAsMetadata>(MDC->getMetadata())); in TEST()
/external/llvm/lib/Target/NVPTX/
DNVVMIntrRange.cpp71 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Low)), in addRangeMetadata()
72 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, High))}; in addRangeMetadata()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/NVPTX/
DNVVMIntrRange.cpp75 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Low)), in addRangeMetadata()
76 ConstantAsMetadata::get(ConstantInt::get(Int32Ty, High))}; in addRangeMetadata()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DGlobalSplit.cpp94 cast<ConstantAsMetadata>(Type->getOperand(0))->getValue()) in splitGlobal()
110 {ConstantAsMetadata::get( in splitGlobal()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DValueMapper.cpp523 if (auto *CMD = dyn_cast<ConstantAsMetadata>(Op)) in tryToMapOperand()
560 static ConstantAsMetadata *wrapConstantAsMetadata(const ConstantAsMetadata &CMD, in wrapConstantAsMetadata()
563 return const_cast<ConstantAsMetadata *>(&CMD); in wrapConstantAsMetadata()
564 return MappedV ? ConstantAsMetadata::getConstant(MappedV) : nullptr; in wrapConstantAsMetadata()
577 if (auto *CMD = dyn_cast<ConstantAsMetadata>(Op)) in getMappedOp()
805 if (auto *CMD = dyn_cast<ConstantAsMetadata>(MD)) { in mapSimpleMetadata()
/external/llvm/unittests/IR/
DAsmWriterTest.cpp29 "", MDNode::get(Ctx, {ConstantAsMetadata::get(ConstantInt::get(Ty, 1))})); in TEST()
/external/llvm/lib/Transforms/Utils/
DValueMapper.cpp522 if (auto *CMD = dyn_cast<ConstantAsMetadata>(Op)) in tryToMapOperand()
549 static ConstantAsMetadata *wrapConstantAsMetadata(const ConstantAsMetadata &CMD, in wrapConstantAsMetadata()
552 return const_cast<ConstantAsMetadata *>(&CMD); in wrapConstantAsMetadata()
553 return MappedV ? ConstantAsMetadata::getConstant(MappedV) : nullptr; in wrapConstantAsMetadata()
566 if (auto *CMD = dyn_cast<ConstantAsMetadata>(Op)) in getMappedOp()
790 if (auto *CMD = dyn_cast<ConstantAsMetadata>(MD)) { in mapSimpleMetadata()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/
DMetadataTest.cpp111 ConstantAsMetadata *getConstantAsMetadata() { in getConstantAsMetadata()
112 return ConstantAsMetadata::get(getConstant()); in getConstantAsMetadata()
180 ConstantAsMetadata *CI = in TEST_F()
181 ConstantAsMetadata::get(ConstantInt::get(Context, APInt(8, 0))); in TEST_F()
269 Metadata *Args[] = {ConstantAsMetadata::get(C), S, nullptr, N0, N1, N2}; in TEST_F()
328 Metadata *Args[] = {ConstantAsMetadata::get(C), S, nullptr, N0, N1, N2}; in TEST_F()
473 ConstantAsMetadata *Op = ConstantAsMetadata::get(GV.get()); in TEST_F()
712 ConstantAsMetadata *Op = ConstantAsMetadata::get(GV.get()); in TEST_F()
735 ConstantAsMetadata *Op = ConstantAsMetadata::get(GV.get()); in TEST_F()
750 Metadata *NullOps[] = {ConstantAsMetadata::get(GV2.get())}; in TEST_F()
[all …]
DAsmWriterTest.cpp31 "", MDNode::get(Ctx, {ConstantAsMetadata::get(ConstantInt::get(Ty, 1))})); in TEST()

1234