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

References

examples/BrainF/BrainF.cpp
  143       ConstantDataArray::getString(C, "Error: The head has left the tape.",
include/llvm/Analysis/ValueTracking.h
  271     const ConstantDataArray *Array;
include/llvm/IR/Constants.h
  696   ConstantDataArray(const ConstantDataArray &) = delete;
  712     return ConstantDataArray::get(Context, makeArrayRef(Elts));
include/llvm/Support/Casting.h
   58     return To::classof(&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;
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  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*,
  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;
  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/ValueTracking.cpp
 3509   const ConstantDataArray *Array;
 3530     Array = dyn_cast<ConstantDataArray>(GV->getInitializer());
lib/AsmParser/LLParser.cpp
 3204     ID.ConstantVal = ConstantDataArray::getString(Context, Lex.getStrVal(),
lib/Bitcode/Reader/BitcodeReader.cpp
 2462       V = ConstantDataArray::getString(Context, Elts,
 2476           V = ConstantDataArray::get(Context, Elts);
 2482           V = ConstantDataArray::get(Context, Elts);
 2488           V = ConstantDataArray::get(Context, Elts);
 2494           V = ConstantDataArray::get(Context, Elts);
 2500           V = ConstantDataArray::getFP(Context, Elts);
 2506           V = ConstantDataArray::getFP(Context, Elts);
 2512           V = ConstantDataArray::getFP(Context, Elts);
lib/IR/AsmWriter.cpp
 1416   if (const ConstantDataArray *CA = dyn_cast<ConstantDataArray>(CV)) {
 1416   if (const ConstantDataArray *CA = dyn_cast<ConstantDataArray>(CV)) {
lib/IR/Constants.cpp
  950   return SequentialTy::get(V[0]->getContext(), Elts);
  963   return SequentialTy::getFP(V[0]->getContext(), Elts);
  974       return getIntSequenceIfElementsMatch<SequenceTy, uint8_t>(V);
  976       return getIntSequenceIfElementsMatch<SequenceTy, uint16_t>(V);
  978       return getIntSequenceIfElementsMatch<SequenceTy, uint32_t>(V);
  980       return getIntSequenceIfElementsMatch<SequenceTy, uint64_t>(V);
  983       return getFPSequenceIfElementsMatch<SequenceTy, uint16_t>(V);
  985       return getFPSequenceIfElementsMatch<SequenceTy, uint32_t>(V);
  987       return getFPSequenceIfElementsMatch<SequenceTy, uint64_t>(V);
 1043     return getSequenceIfElementsMatch<ConstantDataArray>(C, V);
 2512     return *Entry = new ConstantDataArray(Ty, Slot.first().data());
lib/IR/Core.cpp
 1373   return wrap(ConstantDataArray::getString(*unwrap(C), StringRef(Str, Length),
lib/IR/IRBuilder.cpp
   45   Constant *StrConstant = ConstantDataArray::getString(Context, Str);
lib/IR/Module.cpp
  570                 ConstantDataArray::get(Context, Entries));
  577   auto *Arr = dyn_cast_or_null<ConstantDataArray>(CM->getValue());
  577   auto *Arr = dyn_cast_or_null<ConstantDataArray>(CM->getValue());
lib/LTO/LTOModule.cpp
  252       if (ConstantDataArray *ca = dyn_cast<ConstantDataArray>(cn)) {
  252       if (ConstantDataArray *ca = dyn_cast<ConstantDataArray>(cn)) {
lib/ProfileData/InstrProf.cpp
  320       ConstantDataArray::getString(M.getContext(), PGOFuncName, false);
  420   auto *Arr = cast<ConstantDataArray>(NameVar->getInitializer());
  420   auto *Arr = cast<ConstantDataArray>(NameVar->getInitializer());
 1155       ConstantDataArray::getString(M.getContext(), InstrProfileOutput, true);
lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp
  187         if (auto CA = dyn_cast<ConstantDataArray>(Init)) {
  255               ConstantDataArray *CA = dyn_cast<ConstantDataArray>(Init);
  255               ConstantDataArray *CA = dyn_cast<ConstantDataArray>(Init);
  441                 ConstantDataArray *CA = dyn_cast<ConstantDataArray>(Init);
  441                 ConstantDataArray *CA = dyn_cast<ConstantDataArray>(Init);
lib/Target/ARM/ARMISelLowering.cpp
 3358   auto *CDAInit = dyn_cast<ConstantDataArray>(Init);
 3399     Init = ConstantDataArray::get(*DAG.getContext(), V);
lib/Target/BPF/BPFISelDAGToDAG.cpp
   85   bool fillConstantDataArray(const DataLayout &DL, const ConstantDataArray *CDA,
  415   if (const ConstantDataArray *CDA = dyn_cast<ConstantDataArray>(CV))
  415   if (const ConstantDataArray *CDA = dyn_cast<ConstantDataArray>(CV))
  428                                             const ConstantDataArray *CDA,
lib/Target/X86/X86ISelLowering.cpp
38988           if (!isa<ConstantDataArray>(Init) ||
lib/Transforms/IPO/LowerTypeTests.cpp
  630   Constant *ByteArrayConst = ConstantDataArray::get(M.getContext(), BAB.Bytes);
lib/Transforms/IPO/WholeProgramDevirt.cpp
 1509       {ConstantDataArray::get(M.getContext(), B.Before.Bytes),
 1511        ConstantDataArray::get(M.getContext(), B.After.Bytes)});
lib/Transforms/InstCombine/InstCombineCompares.cpp
  150   if (!isa<ConstantArray>(Init) && !isa<ConstantDataArray>(Init))
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
 1257     Constant *Padding = ConstantDataArray::get(*C, Init);
 1364   auto *Name = ConstantDataArray::get(*C, "LLVM\0\0\0");
lib/Transforms/Instrumentation/InstrProfiling.cpp
  923   auto *NamesVal = ConstantDataArray::getString(
lib/Transforms/Instrumentation/Instrumentation.cpp
   63   Constant *StrConst = ConstantDataArray::getString(M.getContext(), Str);
lib/Transforms/Instrumentation/MemorySanitizer.cpp
  684   Constant *StrConst = ConstantDataArray::getString(M.getContext(), Str);
tools/bugpoint/Miscompilation.cpp
  844             ConstantDataArray::getString(F->getContext(), F->getName());
tools/clang/lib/CodeGen/BackendUtil.cpp
 1635       llvm::ConstantDataArray::get(M->getContext(), ModuleData);
 1658       llvm::ConstantDataArray::get(M->getContext(), CmdData);
tools/clang/lib/CodeGen/CGExpr.cpp
 2818     llvm::ConstantDataArray::getString(getLLVMContext(), Buffer)
tools/clang/lib/CodeGen/CGExprConstant.cpp
 1315     return llvm::ConstantDataArray::getString(VMContext, Str, false);
tools/clang/lib/CodeGen/CGObjCGNU.cpp
  220       llvm::Constant *value = llvm::ConstantDataArray::getString(VMContext,Str);
 1061       auto *C = llvm::ConstantDataArray::get(VMContext, Arr);
 1437       llvm::Constant *Init = llvm::ConstantDataArray::getString(VMContext,
tools/clang/lib/CodeGen/CGObjCMac.cpp
 2011     llvm::ConstantDataArray::getString(VMContext, Entry.first());
 4057       llvm::ConstantDataArray::getString(VMContext, Name, NullTerminate);
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 4024   llvm::Constant *StrPtrInit = llvm::ConstantDataArray::getString(C, Name);
 8621         llvm::ConstantDataArray::get(CGF.Builder.getContext(), Mapping);
tools/clang/lib/CodeGen/CodeGenModule.cpp
 2179   llvm::Constant *s = llvm::ConstantDataArray::getString(getLLVMContext(), Str);
 4728     C = llvm::ConstantDataArray::get(VMContext, Arr);
 4730     C = llvm::ConstantDataArray::getString(VMContext, Entry.first());
 4856     return llvm::ConstantDataArray::getString(VMContext, Str, false);
 4871     return llvm::ConstantDataArray::get(VMContext, Elements);
 4881   return llvm::ConstantDataArray::get(VMContext, Elements);
 4975       llvm::ConstantDataArray::getString(getLLVMContext(), StrWithNull, false);
tools/clang/lib/CodeGen/CoverageMappingGen.cpp
 1412       llvm::ConstantDataArray::getString(Ctx, OS.str(), false);
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
 2865   llvm::Constant *Init = llvm::ConstantDataArray::getString(VMContext,
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
 3833     llvm::ConstantDataArray::getString(CGM.getLLVMContext(), TypeInfoString)};
tools/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
  275     auto *Data = llvm::ConstantDataArray::getString(
tools/clang/tools/clang-offload-wrapper/ClangOffloadWrapper.cpp
  205       auto *Data = ConstantDataArray::get(C, Buf);
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
  708       ConstantDataArray *cstr_array =
  709           dyn_cast<ConstantDataArray>(cstr_global->getInitializer());
  820   ConstantDataArray *omvn_initializer_array =
  821       dyn_cast<ConstantDataArray>(omvn_initializer);
  978   ConstantDataArray *ocn_initializer_array =
  979       dyn_cast<ConstantDataArray>(ocn_initializer);
tools/polly/lib/CodeGen/LoopGeneratorsKMP.cpp
  478     Constant *InitStr = ConstantDataArray::getString(