reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/IR/MDBuilder.h
   30 class ConstantAsMetadata;
include/llvm/IR/Metadata.def
   77 HANDLE_METADATA_LEAF(ConstantAsMetadata)

References

include/llvm/IR/DebugInfoMetadata.h
  329     if (auto *MD = dyn_cast<ConstantAsMetadata>(getRawCountNode()))
  329     if (auto *MD = dyn_cast<ConstantAsMetadata>(getRawCountNode()))
  854     if (auto *CM = cast_or_null<ConstantAsMetadata>(getExtraData()))
  854     if (auto *CM = cast_or_null<ConstantAsMetadata>(getExtraData()))
  862     if (auto *C = cast_or_null<ConstantAsMetadata>(getExtraData()))
  862     if (auto *C = cast_or_null<ConstantAsMetadata>(getExtraData()))
  869     if (auto *C = cast_or_null<ConstantAsMetadata>(getExtraData()))
  869     if (auto *C = cast_or_null<ConstantAsMetadata>(getExtraData()))
  875     if (auto *C = cast_or_null<ConstantAsMetadata>(getExtraData()))
  875     if (auto *C = cast_or_null<ConstantAsMetadata>(getExtraData()))
include/llvm/IR/MDBuilder.h
   45   ConstantAsMetadata *createConstant(Constant *C);
include/llvm/IR/Metadata.h
  360   static ConstantAsMetadata *getConstant(Value *C) {
  361     return cast<ConstantAsMetadata>(get(C));
  370   static ConstantAsMetadata *getConstantIfExists(Value *C) {
  371     return cast_or_null<ConstantAsMetadata>(getIfExists(C));
  409   static ConstantAsMetadata *get(Constant *C) {
  413   static ConstantAsMetadata *getIfExists(Constant *C) {
  532   if (auto *V = dyn_cast<ConstantAsMetadata>(MD))
  532   if (auto *V = dyn_cast<ConstantAsMetadata>(MD))
  549   return cast<X>(cast<ConstantAsMetadata>(MD)->getValue());
  565   if (auto *V = cast_or_null<ConstantAsMetadata>(MD))
  565   if (auto *V = cast_or_null<ConstantAsMetadata>(MD))
  578   if (auto *V = dyn_cast<ConstantAsMetadata>(MD))
  578   if (auto *V = dyn_cast<ConstantAsMetadata>(MD))
  591   if (auto *V = dyn_cast_or_null<ConstantAsMetadata>(MD))
  591   if (auto *V = dyn_cast_or_null<ConstantAsMetadata>(MD))
include/llvm/Support/Casting.h
   58     return To::classof(&Val);
   92     return isa_impl<To, From>::doit(*Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  172   using ret_type = To *;       // Pointer arg case, return Ty*
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  218   static typename cast_retty<To, From>::ret_type doit(From &Val) {
  219     return cast_convert_val<To, SimpleFrom,
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  248                                typename cast_retty<X, const Y>::ret_type>::type
  252       X, const Y, typename simplify_type<const Y>::SimpleType>::doit(Val);
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  285                             typename cast_retty<X, const Y>::ret_type>::type
  290   return cast<X>(Val);
  296                             typename cast_retty<X, Y>::ret_type>::type
  305 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
  309   return cast<X>(Val);
  331                             typename cast_retty<X, const Y>::ret_type>::type
  333   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  333   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  352                             typename cast_retty<X, const Y>::ret_type>::type
  354   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
  354   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
  360                             typename cast_retty<X, Y>::ret_type>::type
  366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
  368   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
  368   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
lib/Analysis/ModuleSummaryAnalysis.cpp
  559             cast<ConstantAsMetadata>(Type->getOperand(0))->getValue())
lib/Analysis/TargetLibraryInfo.cpp
 1609   if (auto *ShortWChar = cast_or_null<ConstantAsMetadata>(
 1609   if (auto *ShortWChar = cast_or_null<ConstantAsMetadata>(
lib/Analysis/TypeBasedAliasAnalysis.cpp
  549   auto *OffsetNode = ConstantAsMetadata::get(ConstantInt::get(Int64, 0));
  549   auto *OffsetNode = ConstantAsMetadata::get(ConstantInt::get(Int64, 0));
  555     auto *SizeNode =
  556         ConstantAsMetadata::get(ConstantInt::get(Int64, AccessSize));
lib/AsmParser/LLParser.cpp
 3885 struct MDConstant : public MDFieldImpl<ConstantAsMetadata *> {
lib/Bitcode/Reader/MetadataLoader.cpp
 1575       if (auto *CMD = dyn_cast_or_null<ConstantAsMetadata>(CUorFn))
 1575       if (auto *CMD = dyn_cast_or_null<ConstantAsMetadata>(CUorFn))
 1738       if (auto *CMD = dyn_cast_or_null<ConstantAsMetadata>(Expr)) {
 1738       if (auto *CMD = dyn_cast_or_null<ConstantAsMetadata>(Expr)) {
lib/Bitcode/Writer/ValueEnumerator.cpp
  683   if (auto *C = dyn_cast<ConstantAsMetadata>(MD))
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
  345     uint64_t Count = cast<ConstantAsMetadata>(E->getOperand(2))
lib/IR/AbstractCallSite.cpp
   85     auto *CBCalleeIdxAsCM = cast<ConstantAsMetadata>(OpMD->getOperand(0));
   85     auto *CBCalleeIdxAsCM = cast<ConstantAsMetadata>(OpMD->getOperand(0));
  108     auto *OpAsCM = cast<ConstantAsMetadata>(OpAsM);
  108     auto *OpAsCM = cast<ConstantAsMetadata>(OpAsM);
  124   auto *VarArgFlagAsCM = cast<ConstantAsMetadata>(VarArgFlagAsM);
  124   auto *VarArgFlagAsCM = cast<ConstantAsMetadata>(VarArgFlagAsM);
lib/IR/AutoUpgrade.cpp
 1672           ConstantAsMetadata::get(ConstantInt::get(Type::getInt32Ty(C), 1)));
 1699           ConstantAsMetadata::get(ConstantInt::get(Type::getInt32Ty(C), 1)));
 3025           C, ConstantAsMetadata::get(ConstantInt::get(Type::getInt32Ty(C), 1)));
 3754                          ConstantAsMetadata::get(
 3760   Metadata *Elts[] = {&MD, &MD, ConstantAsMetadata::get(Constant::getNullValue(
 4005               ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Module::Max)),
lib/IR/Core.cpp
  978   if (auto *C = dyn_cast<ConstantAsMetadata>(Op))
  978   if (auto *C = dyn_cast<ConstantAsMetadata>(Op))
 1079       MD = ConstantAsMetadata::get(C);
 1107     return wrap(ConstantAsMetadata::get(C));
lib/IR/DIBuilder.cpp
  326   Metadata *ExtraData = ConstantAsMetadata::get(
  344 static ConstantAsMetadata *getConstantOrNull(Constant *C) {
  346     return ConstantAsMetadata::get(C);
  369       ConstantAsMetadata::get(ConstantInt::get(IntegerType::get(VMContext, 64),
lib/IR/DebugInfoMetadata.cpp
  319   auto *CountNode = ConstantAsMetadata::get(
  319   auto *CountNode = ConstantAsMetadata::get(
lib/IR/LLVMContextImpl.h
  341       if (auto *MD = dyn_cast<ConstantAsMetadata>(CountNode))
  341       if (auto *MD = dyn_cast<ConstantAsMetadata>(CountNode))
  350     if (auto *MD = dyn_cast<ConstantAsMetadata>(CountNode))
  350     if (auto *MD = dyn_cast<ConstantAsMetadata>(CountNode))
lib/IR/MDBuilder.cpp
   24 ConstantAsMetadata *MDBuilder::createConstant(Constant *C) {
   25   return ConstantAsMetadata::get(C);
   32   auto *Op =
  129   auto *NewCBCalleeIdxAsCM = cast<ConstantAsMetadata>(NewCB->getOperand(0));
  129   auto *NewCBCalleeIdxAsCM = cast<ConstantAsMetadata>(NewCB->getOperand(0));
  141     auto *OldCBCalleeIdxAsCM = cast<ConstantAsMetadata>(Ops[u]);
  141     auto *OldCBCalleeIdxAsCM = cast<ConstantAsMetadata>(Ops[u]);
  268   auto *OffsetNode = createConstant(ConstantInt::get(Int64, Offset));
  269   auto *SizeNode = createConstant(ConstantInt::get(Int64, Size));
  271     auto *ImmutabilityFlagNode = createConstant(ConstantInt::get(Int64, 1));
lib/IR/Metadata.cpp
   98   if (auto *C = dyn_cast<ConstantAsMetadata>(N->getOperand(0)))
   98   if (auto *C = dyn_cast<ConstantAsMetadata>(N->getOperand(0)))
  359       Entry = new ConstantAsMetadata(C);
  416       MD->replaceAllUsesWith(ConstantAsMetadata::get(C));
  715   if (New == this || (!New && Old && isa<ConstantAsMetadata>(Old))) {
 1045     MDs.push_back(ConstantAsMetadata::get(I));
 1457           cast<ConstantAsMetadata>(MD.second->getOperand(0))->getValue());
 1459       auto *NewOffsetMD = ConstantAsMetadata::get(ConstantInt::get(
 1459       auto *NewOffsetMD = ConstantAsMetadata::get(ConstantInt::get(
 1495                     {ConstantAsMetadata::get(ConstantInt::get(
 1503                            {ConstantAsMetadata::get(ConstantInt::get(
 1510                        cast<ConstantAsMetadata>(MD->getOperand(0))->getValue())
lib/IR/Module.cpp
  341       ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Behavior)),
  347   addModuleFlag(Behavior, Key, ConstantAsMetadata::get(Val));
  454   auto *Val =
  455       cast_or_null<ConstantAsMetadata>(getModuleFlag("NumRegisterParameters"));
  462   auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("Dwarf Version"));
  462   auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("Dwarf Version"));
  469   auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("CodeView"));
  469   auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("CodeView"));
  489   auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIC Level"));
  489   auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIC Level"));
  503   auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIE Level"));
  503   auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("PIE Level"));
  517   auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("Code Model"));
  517   auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("Code Model"));
  551   auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("RtLibUseGOT"));
  551   auto *Val = cast_or_null<ConstantAsMetadata>(getModuleFlag("RtLibUseGOT"));
  574   auto *CM = dyn_cast_or_null<ConstantAsMetadata>(getModuleFlag("SDK Version"));
  574   auto *CM = dyn_cast_or_null<ConstantAsMetadata>(getModuleFlag("SDK Version"));
lib/IR/ProfileSummary.cpp
   30                       ConstantAsMetadata::get(ConstantInt::get(Int64Ty, Val))};
   53         ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Entry.Cutoff)),
   54         ConstantAsMetadata::get(ConstantInt::get(Int64Ty, Entry.MinCount)),
   55         ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Entry.NumCounts))};
   90   ConstantAsMetadata *ValMD = dyn_cast<ConstantAsMetadata>(MD->getOperand(1));
   90   ConstantAsMetadata *ValMD = dyn_cast<ConstantAsMetadata>(MD->getOperand(1));
  126     ConstantAsMetadata *Op0 =
  127         dyn_cast<ConstantAsMetadata>(EntryMD->getOperand(0));
  128     ConstantAsMetadata *Op1 =
  129         dyn_cast<ConstantAsMetadata>(EntryMD->getOperand(1));
  130     ConstantAsMetadata *Op2 =
  131         dyn_cast<ConstantAsMetadata>(EntryMD->getOperand(2));
lib/IR/TypeFinder.cpp
  163     if (auto *C = dyn_cast<ConstantAsMetadata>(Op)) {
  163     if (auto *C = dyn_cast<ConstantAsMetadata>(Op)) {
lib/IR/Verifier.cpp
 1495   auto Count = dyn_cast_or_null<ConstantAsMetadata>(Node->getOperand(2));
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
  956           ConstantAsMetadata::get(ConstantInt::get(I32Ty, Lower->getValue().zext(32))),
  958           ConstantAsMetadata::get(ConstantInt::get(I32Ty, 0))
lib/Target/AMDGPU/R600OpenCLImageTypeLoweringPass.cpp
  323     KernelMDArgs.push_back(ConstantAsMetadata::get(NewF));
lib/Target/NVPTX/NVVMIntrRange.cpp
   74       ConstantAsMetadata::get(ConstantInt::get(Int32Ty, Low)),
   75       ConstantAsMetadata::get(ConstantInt::get(Int32Ty, High))};
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
  238     if (auto *MD = cast<ConstantAsMetadata>(Policy))
  238     if (auto *MD = cast<ConstantAsMetadata>(Policy))
  298         cast<ConstantAsMetadata>(Idx->getOperand(0))->getValue()));
lib/Transforms/IPO/CrossDSOCFI.cpp
  150                                   Ctx, ConstantAsMetadata::get(CaseTypeId))});
lib/Transforms/IPO/GlobalDCE.cpp
  162   auto *LTOPostLinkMD =
  163       cast_or_null<ConstantAsMetadata>(M.getModuleFlag("LTOPostLink"));
  182               cast<ConstantAsMetadata>(Type->getOperand(0))->getValue())
lib/Transforms/IPO/GlobalSplit.cpp
   93               cast<ConstantAsMetadata>(Type->getOperand(0))->getValue())
  109                        {ConstantAsMetadata::get(
lib/Transforms/IPO/LowerTypeTests.cpp
  565               cast<ConstantAsMetadata>(Type->getOperand(0))->getValue())
  697               cast<ConstantAsMetadata>(Type->getOperand(0))->getValue())
  990       auto *MinC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Min));
  990       auto *MinC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Min));
  991       auto *MaxC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Max));
  991       auto *MaxC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Max));
 1182   auto OffsetConstMD = dyn_cast<ConstantAsMetadata>(Type->getOperand(0));
 1575                              ArrayRef<Metadata *>(ConstantAsMetadata::get(
 1857             cast<ConstantAsMetadata>(FuncMD->getOperand(1))
 2149                 cast<ConstantAsMetadata>(AliasMD->getOperand(2))
 2154             static_cast<bool>(cast<ConstantAsMetadata>(AliasMD->getOperand(3))
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
  333     Elts.push_back(ConstantAsMetadata::get(
  356         ConstantAsMetadata::get(
  358         ConstantAsMetadata::get(
lib/Transforms/IPO/WholeProgramDevirt.cpp
  804               cast<ConstantAsMetadata>(Type->getOperand(0))->getValue())
 1285     auto *MinC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Min));
 1285     auto *MinC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Min));
 1286     auto *MaxC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Max));
 1286     auto *MaxC = ConstantAsMetadata::get(ConstantInt::get(IntPtrTy, Max));
lib/Transforms/InstCombine/InstCombineCalls.cpp
 1248         ConstantAsMetadata::get(ConstantInt::get(IT, DefiniteZeros)),
 1249         ConstantAsMetadata::get(ConstantInt::get(IT, PossibleZeros + 1))};
 1285         ConstantAsMetadata::get(ConstantInt::get(IT, MinCount)),
 1286         ConstantAsMetadata::get(ConstantInt::get(IT, MaxCount + 1))};
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
  419       ConstantAsMetadata::get(ConstantInt::get(Type::getInt1Ty(Context), 0));
lib/Transforms/Utils/LoopUtils.cpp
  204       ConstantAsMetadata::get(ConstantInt::get(Type::getInt32Ty(Context), V))};
lib/Transforms/Utils/ValueMapper.cpp
  522     if (auto *CMD = dyn_cast<ConstantAsMetadata>(Op))
  559 static ConstantAsMetadata *wrapConstantAsMetadata(const ConstantAsMetadata &CMD,
  559 static ConstantAsMetadata *wrapConstantAsMetadata(const ConstantAsMetadata &CMD,
  563   return MappedV ? ConstantAsMetadata::getConstant(MappedV) : nullptr;
  576   if (auto *CMD = dyn_cast<ConstantAsMetadata>(Op))
  790   if (auto *CMD = dyn_cast<ConstantAsMetadata>(MD)) {
lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
   99        ConstantAsMetadata::get(ConstantInt::get(Context, APInt(32, 1)))});
tools/clang/lib/CodeGen/Address.h
  108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGBuiltin.cpp
11339         getLLVMContext(), llvm::ConstantAsMetadata::get(Builder.getInt32(1)));
tools/clang/lib/CodeGen/CGDecl.cpp
 1351       MD = llvm::ConstantAsMetadata::get(C);
tools/clang/lib/CodeGen/CGExpr.cpp
 1675         Load->getContext(), llvm::ConstantAsMetadata::get(Builder.getInt32(1)));
 1757                           llvm::ConstantAsMetadata::get(Builder.getInt32(1)));
tools/clang/lib/CodeGen/CGLoopInfo.cpp
   51                             ConstantAsMetadata::get(ConstantInt::get(
   66         ConstantAsMetadata::get(ConstantInt::get(
  121                         ConstantAsMetadata::get(ConstantInt::get(
  185         ConstantAsMetadata::get(ConstantInt::get(llvm::Type::getInt32Ty(Ctx),
  231                             ConstantAsMetadata::get(ConstantInt::get(
  266         ConstantAsMetadata::get(ConstantInt::get(llvm::Type::getInt1Ty(Ctx),
  275         ConstantAsMetadata::get(ConstantInt::get(llvm::Type::getInt32Ty(Ctx),
  284         ConstantAsMetadata::get(ConstantInt::get(llvm::Type::getInt32Ty(Ctx),
  294         ConstantAsMetadata::get(ConstantInt::get(
  331                             ConstantAsMetadata::get(ConstantInt::get(
  349                       ConstantAsMetadata::get(ConstantInt::get(
tools/clang/lib/CodeGen/CGObjCGNU.cpp
 2599       llvm::ConstantAsMetadata::get(llvm::ConstantInt::get(
 2675       llvm::ConstantAsMetadata::get(llvm::ConstantInt::get(
tools/clang/lib/CodeGen/CGObjCMac.cpp
 5003           llvm::ConstantAsMetadata::get(llvm::ConstantInt::get(
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 4072     return llvm::ConstantAsMetadata::get(
 4257       auto *V = cast<llvm::ConstantAsMetadata>(MN->getOperand(Idx));
 4257       auto *V = cast<llvm::ConstantAsMetadata>(MN->getOperand(Idx));
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
 1849       llvm::ConstantAsMetadata::get(Addr), llvm::MDString::get(Ctx, "kernel"),
 1850       llvm::ConstantAsMetadata::get(
tools/clang/lib/CodeGen/CGStmt.cpp
 1889   Locs.push_back(llvm::ConstantAsMetadata::get(llvm::ConstantInt::get(
 1904       Locs.push_back(llvm::ConstantAsMetadata::get(
 1940                                          llvm::ConstantAsMetadata::get(Loc)));
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  553         llvm::ConstantAsMetadata::get(llvm::UndefValue::get(
  555         llvm::ConstantAsMetadata::get(llvm::ConstantInt::get(
  563         llvm::ConstantAsMetadata::get(Builder.getInt32(A->getXDim())),
  564         llvm::ConstantAsMetadata::get(Builder.getInt32(A->getYDim())),
  565         llvm::ConstantAsMetadata::get(Builder.getInt32(A->getZDim()))};
  571         llvm::ConstantAsMetadata::get(Builder.getInt32(A->getXDim())),
  572         llvm::ConstantAsMetadata::get(Builder.getInt32(A->getYDim())),
  573         llvm::ConstantAsMetadata::get(Builder.getInt32(A->getZDim()))};
  580         llvm::ConstantAsMetadata::get(Builder.getInt32(A->getSubGroupSize()))};
tools/clang/lib/CodeGen/CodeGenModule.cpp
  500               llvm::ConstantAsMetadata::get(llvm::ConstantInt::get(
  574           llvm::ConstantAsMetadata::get(llvm::ConstantInt::get(
  576           llvm::ConstantAsMetadata::get(llvm::ConstantInt::get(
  636       llvm::ConstantAsMetadata::get(llvm::ConstantInt::get(
  638       llvm::ConstantAsMetadata::get(llvm::ConstantInt::get(
 1303             llvm::ConstantAsMetadata::get(CGF->Builder.getInt32(
 1345             llvm::ConstantAsMetadata::get(CGF->Builder.getInt32(AddrSpc)));
 1788       F->addTypeMetadata(0, llvm::ConstantAsMetadata::get(CrossDsoTypeId));
 5569   llvm::Metadata *Ops[] = {llvm::ConstantAsMetadata::get(Addr),
 5570                            llvm::ConstantAsMetadata::get(GetPointerConstant(
 5855                               llvm::ConstantAsMetadata::get(CrossDsoTypeId));
tools/clang/lib/CodeGen/SanitizerMetadata.cpp
   50       llvm::ConstantAsMetadata::get(GV), LocDescr, GlobalName,
   51       llvm::ConstantAsMetadata::get(
   53       llvm::ConstantAsMetadata::get(llvm::ConstantInt::get(
   97       llvm::ConstantAsMetadata::get(llvm::ConstantInt::get(
   99       llvm::ConstantAsMetadata::get(llvm::ConstantInt::get(
tools/clang/lib/CodeGen/TargetInfo.cpp
 6523       llvm::ConstantAsMetadata::get(F), llvm::MDString::get(Ctx, Name),
 6524       llvm::ConstantAsMetadata::get(
 7402         Operands.push_back(llvm::ConstantAsMetadata::get(F));
 7405             llvm::ConstantAsMetadata::get(llvm::Constant::getIntegerValue(
 7408             llvm::ConstantAsMetadata::get(llvm::Constant::getIntegerValue(
 7411             llvm::ConstantAsMetadata::get(llvm::Constant::getIntegerValue(
 7418             llvm::ConstantAsMetadata::get(llvm::ConstantInt::getTrue(Context)));
 8873     llvm::Metadata *MDVals[] = {llvm::ConstantAsMetadata::get(GV),
 9939   AddressQuals.push_back(llvm::ConstantAsMetadata::get(Builder.getInt32(0)));
 9947     AddressQuals.push_back(llvm::ConstantAsMetadata::get(Builder.getInt32(3)));
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
  361   values[0] = ConstantAsMetadata::get(new_result_global);
  362   values[1] = ConstantAsMetadata::get(new_constant_int);
 1117   values[0] = ConstantAsMetadata::get(persistent_global);
 1118   values[1] = ConstantAsMetadata::get(constant_int);
unittests/IR/AsmWriterTest.cpp
   30       "", MDNode::get(Ctx, {ConstantAsMetadata::get(ConstantInt::get(Ty, 1))}));
unittests/IR/MetadataTest.cpp
  111   ConstantAsMetadata *getConstantAsMetadata() {
  112     return ConstantAsMetadata::get(getConstant());
  179   ConstantAsMetadata *CI =
  180       ConstantAsMetadata::get(ConstantInt::get(Context, APInt(8, 0)));
  268   Metadata *Args[] = {ConstantAsMetadata::get(C), S, nullptr, N0, N1, N2};
  327   Metadata *Args[] = {ConstantAsMetadata::get(C), S, nullptr, N0, N1, N2};
  493   ConstantAsMetadata *Op = ConstantAsMetadata::get(GV.get());
  493   ConstantAsMetadata *Op = ConstantAsMetadata::get(GV.get());
  732   ConstantAsMetadata *Op = ConstantAsMetadata::get(GV.get());
  732   ConstantAsMetadata *Op = ConstantAsMetadata::get(GV.get());
  755   ConstantAsMetadata *Op = ConstantAsMetadata::get(GV.get());
  755   ConstantAsMetadata *Op = ConstantAsMetadata::get(GV.get());
  770   Metadata *NullOps[] = {ConstantAsMetadata::get(GV2.get())};
 2513   auto *MD = ConstantAsMetadata::get(C);
 2513   auto *MD = ConstantAsMetadata::get(C);
 2544   ConstantAsMetadata *CI =
 2545       ConstantAsMetadata::get(ConstantInt::get(Context, APInt(8, 0)));
 2561   ConstantAsMetadata *CI =
 2562       ConstantAsMetadata::get(ConstantInt::get(Context, APInt(8, 0)));
 2620   ConstantAsMetadata *C =
 2621       ConstantAsMetadata::get(ConstantInt::get(Type::getInt32Ty(Context), 1));
 2622   ConstantAsMetadata *C2 =
 2623       ConstantAsMetadata::get(ConstantInt::get(Type::getInt32Ty(Context), 2));
unittests/Transforms/Utils/ValueMapperTest.cpp
   79     Metadata *Ops1[] = {T0.get(), ConstantAsMetadata::get(G0.get())};
  238   auto *CAM = ConstantAsMetadata::get(F.get());
  238   auto *CAM = ConstantAsMetadata::get(F.get());
utils/unittest/googletest/include/gtest/gtest-printers.h
  407                     T* p, ::std::ostream* os) {
  416     if (IsTrue(ImplicitlyConvertible<T*, const void*>::value)) {