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

Declarations

include/llvm/CodeGen/AsmPrinter.h
   39 class ConstantArray;
include/llvm/ExecutionEngine/Orc/ExecutionUtils.h
   32 class ConstantArray;

References

include/llvm/ADT/DenseMapInfo.h
   39   static inline T* getEmptyKey() {
   41     Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
   45   static inline T* getTombstoneKey() {
   47     Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
   51   static unsigned getHashValue(const T *PtrVal) {
   56   static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
   56   static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
include/llvm/CodeGen/AsmPrinter.h
  682   void EmitLLVMUsedList(const ConstantArray *InitList);
include/llvm/ExecutionEngine/Orc/ExecutionUtils.h
   84   const ConstantArray *InitList;
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;
include/llvm/Support/PointerLikeTypeTraits.h
   56   static inline void *getAsVoidPointer(T *P) { return P; }
   57   static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); }
   59   enum { NumLowBitsAvailable = detail::ConstantLog2<alignof(T)>::value };
lib/Analysis/ConstantFolding.cpp
  459   if (isa<ConstantArray>(C) || isa<ConstantVector>(C) ||
lib/Analysis/ModuleSummaryAnalysis.cpp
  515   } else if (auto *C = dyn_cast<ConstantArray>(I)) {
lib/Analysis/TypeMetadataUtils.cpp
  149   if (auto *C = dyn_cast<ConstantArray>(I)) {
  149   if (auto *C = dyn_cast<ConstantArray>(I)) {
lib/AsmParser/LLParser.cpp
 3198     ID.ConstantVal = ConstantArray::get(ATy, Elts);
lib/Bitcode/Reader/BitcodeReader.cpp
 2445         V = ConstantArray::get(ATy, Elts);
lib/Bitcode/Reader/ValueList.cpp
  205       if (ConstantArray *UserCA = dyn_cast<ConstantArray>(UserC)) {
  205       if (ConstantArray *UserCA = dyn_cast<ConstantArray>(UserC)) {
  206         NewC = ConstantArray::get(UserCA->getType(), NewOps);
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 1583       if (const auto *A = cast<ConstantArray>(LU->getInitializer())) {
 1583       if (const auto *A = cast<ConstantArray>(LU->getInitializer())) {
 1930       EmitLLVMUsedList(cast<ConstantArray>(GV->getInitializer()));
 1962 void AsmPrinter::EmitLLVMUsedList(const ConstantArray *InitList) {
 1990   if (!isa<ConstantArray>(List)) return;
 1993   const ConstantArray *InitList = dyn_cast<ConstantArray>(List);
 1993   const ConstantArray *InitList = dyn_cast<ConstantArray>(List);
 2352   if (const ConstantArray *CA = dyn_cast<ConstantArray>(V)) {
 2352   if (const ConstantArray *CA = dyn_cast<ConstantArray>(V)) {
 2415                                     const ConstantArray *CA, AsmPrinter &AP,
 2710   if (const ConstantArray *CVA = dyn_cast<ConstantArray>(CV))
 2710   if (const ConstantArray *CVA = dyn_cast<ConstantArray>(CV))
lib/CodeGen/GlobalMerge.cpp
  569   const ConstantArray *InitList = cast<ConstantArray>(GV->getInitializer());
  569   const ConstantArray *InitList = cast<ConstantArray>(GV->getInitializer());
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
20005   Constant *CA = ConstantArray::get(ArrayType::get(FPTy, 2), Elts);
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 1471     if (isa<ConstantStruct>(C) || isa<ConstantArray>(C)) {
lib/CodeGen/ShadowStackGCLowering.cpp
  125       ConstantArray::get(ArrayType::get(VoidPtr, NumMeta), Metadata)};
lib/ExecutionEngine/ExecutionEngine.cpp
  383   ConstantArray *InitList = dyn_cast<ConstantArray>(GV->getInitializer());
  383   ConstantArray *InitList = dyn_cast<ConstantArray>(GV->getInitializer());
 1151   if (const ConstantArray *CPA = dyn_cast<ConstantArray>(Init)) {
 1151   if (const ConstantArray *CPA = dyn_cast<ConstantArray>(Init)) {
lib/ExecutionEngine/Orc/ExecutionUtils.cpp
   24       GV ? dyn_cast_or_null<ConstantArray>(GV->getInitializer()) : nullptr),
lib/IR/AsmWriter.cpp
 1397   if (const ConstantArray *CA = dyn_cast<ConstantArray>(CV)) {
 1397   if (const ConstantArray *CA = dyn_cast<ConstantArray>(CV)) {
lib/IR/AutoUpgrade.cpp
  862   Constant *NewInit = ConstantArray::get(ArrayType::get(EltTy, N), NewCtors);
lib/IR/ConstantFold.cpp
  937     return ConstantArray::get(AT, Result);
lib/IR/ConstantsContext.h
  360   using ValType = ConstantAggrKeyType<ConstantArray>;
  377   ConstantAggrKeyType(ArrayRef<Constant *> Operands, const ConstantClass *)
  380   ConstantAggrKeyType(const ConstantClass *C,
  392   bool operator==(const ConstantClass *C) const {
  405   using TypeClass = typename ConstantInfo<ConstantClass>::TypeClass;
  407   ConstantClass *create(TypeClass *Ty) const {
  408     return new (Operands.size()) ConstantClass(Ty, Operands);
  572   using ValType = typename ConstantInfo<ConstantClass>::ValType;
  573   using TypeClass = typename ConstantInfo<ConstantClass>::TypeClass;
  581     using ConstantClassInfo = DenseMapInfo<ConstantClass *>;
  583     static inline ConstantClass *getEmptyKey() {
  587     static inline ConstantClass *getTombstoneKey() {
  591     static unsigned getHashValue(const ConstantClass *CP) {
  596     static bool isEqual(const ConstantClass *LHS, const ConstantClass *RHS) {
  596     static bool isEqual(const ConstantClass *LHS, const ConstantClass *RHS) {
  608     static bool isEqual(const LookupKey &LHS, const ConstantClass *RHS) {
  616     static bool isEqual(const LookupKeyHashed &LHS, const ConstantClass *RHS) {
  622   using MapTy = DenseSet<ConstantClass *, MapInfo>;
  637   ConstantClass *create(TypeClass *Ty, ValType V, LookupKeyHashed &HashKey) {
  638     ConstantClass *Result = V.create(Ty);
  648   ConstantClass *getOrCreate(TypeClass *Ty, ValType V) {
  653     ConstantClass *Result = nullptr;
  666   void remove(ConstantClass *CP) {
  673   ConstantClass *replaceOperandsInPlace(ArrayRef<Constant *> Operands,
  674                                         ConstantClass *CP, Value *From,
lib/IR/Core.cpp
 1400   return wrap(ConstantArray::get(ArrayType::get(unwrap(ElementTy), Length), V));
lib/IR/LLVMContextImpl.cpp
   84   for (auto *I : ArrayConstants)
  150       auto *C = *I++;
lib/IR/LLVMContextImpl.h
 1293   using ArrayConstantsTy = ConstantUniqueMap<ConstantArray>;
lib/IR/Module.cpp
  605   const ConstantArray *Init = cast<ConstantArray>(GV->getInitializer());
  605   const ConstantArray *Init = cast<ConstantArray>(GV->getInitializer());
lib/IR/Verifier.cpp
  673         const ConstantArray *InitArray = dyn_cast<ConstantArray>(Init);
  673         const ConstantArray *InitArray = dyn_cast<ConstantArray>(Init);
lib/Target/BPF/BPFISelDAGToDAG.cpp
   87   bool fillConstantArray(const DataLayout &DL, const ConstantArray *CA,
  359     else if (const ConstantArray *CA = dyn_cast<ConstantArray>(Init))
  359     else if (const ConstantArray *CA = dyn_cast<ConstantArray>(Init))
  418   if (const ConstantArray *CA = dyn_cast<ConstantArray>(CV))
  418   if (const ConstantArray *CA = dyn_cast<ConstantArray>(CV))
  441                                         const ConstantArray *CA,
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
  760   const ConstantArray *InitList = dyn_cast<ConstantArray>(GV->getInitializer());
  760   const ConstantArray *InitList = dyn_cast<ConstantArray>(GV->getInitializer());
 1931   if (isa<ConstantArray>(CPV) || isa<ConstantVector>(CPV)) {
lib/Target/WebAssembly/WebAssemblyLowerGlobalDtors.cpp
   67   const ConstantArray *InitList = dyn_cast<ConstantArray>(GV->getInitializer());
   67   const ConstantArray *InitList = dyn_cast<ConstantArray>(GV->getInitializer());
lib/Target/XCore/XCoreLowerThreadLocal.cpp
   73   return ConstantArray::get(NewType, Elements);
lib/Transforms/Coroutines/CoroElide.cpp
  229   ConstantArray *Resumers = CoroId->getInfo().Resumers;
lib/Transforms/Coroutines/CoroInstr.h
  156     ConstantArray *Resumers = nullptr;
  173     Result.Resumers = cast<ConstantArray>(Initializer);
lib/Transforms/Coroutines/CoroSplit.cpp
  830   auto *ConstVal = ConstantArray::get(ArrTy, Args);
lib/Transforms/IPO/ConstantMerge.cpp
   48   ConstantArray *Inits = cast<ConstantArray>(LLVMUsed->getInitializer());
   48   ConstantArray *Inits = cast<ConstantArray>(LLVMUsed->getInitializer());
lib/Transforms/IPO/GlobalOpt.cpp
 2425     return ConstantArray::get(cast<ArrayType>(InitTy), Elts);
 2535           CurrentGV->setInitializer(ConstantArray::get(ArrTy, Elts));
 2623                          ConstantArray::get(ATy, UsedArray), "");
lib/Transforms/IPO/StripSymbols.cpp
  195   ConstantArray *Inits = cast<ConstantArray>(LLVMUsed->getInitializer());
  195   ConstantArray *Inits = cast<ConstantArray>(LLVMUsed->getInitializer());
lib/Transforms/InstCombine/InstCombineCompares.cpp
  150   if (!isa<ConstantArray>(Init) && !isa<ConstantDataArray>(Init))
lib/Transforms/InstCombine/InstructionCombining.cpp
 2888         ConstantArray *Filter = cast<ConstantArray>(FilterClause);
 2888         ConstantArray *Filter = cast<ConstantArray>(FilterClause);
 2941         FilterClause = ConstantArray::get(FilterType, NewFilterElts);
 3044       ConstantArray *LArray = cast<ConstantArray>(LFilter);
 3044       ConstantArray *LArray = cast<ConstantArray>(LFilter);
 3063       ConstantArray *FArray = cast<ConstantArray>(Filter);
 3063       ConstantArray *FArray = cast<ConstantArray>(Filter);
lib/Transforms/Instrumentation/AddressSanitizer.cpp
 1782   ConstantArray *CA = dyn_cast<ConstantArray>(GV->getInitializer());
 1782   ConstantArray *CA = dyn_cast<ConstantArray>(GV->getInitializer());
 2192       ConstantArray::get(ArrayOfGlobalStructTy, MetadataInitializers), "");
lib/Transforms/Instrumentation/GCOVProfiling.cpp
 1035         ConstantArray::get(EmitFunctionCallArgsArrayTy,
 1045         ConstantArray::get(EmitArcsCallArgsArrayTy, EmitArcsCallArgsArray),
 1078       ConstantArray::get(FileInfoArrayTy, FileInfos),
lib/Transforms/Instrumentation/InstrProfiling.cpp
  658   ConstantArray *Names =
  659       cast<ConstantArray>(CoverageNamesVar->getInitializer());
lib/Transforms/Instrumentation/MemorySanitizer.cpp
 1549       return ConstantArray::get(AT, Vals);
lib/Transforms/Instrumentation/SanitizerCoverage.cpp
  688       ConstantArray::get(ArrayType::get(IntptrPtrTy, N * 2), PCs));
  775           ConstantArray::get(ArrayOfInt64Ty, Initializers),
lib/Transforms/ObjCARC/ObjCARCAPElim.cpp
  155   ConstantArray *Init = cast<ConstantArray>(GV->getInitializer());
  155   ConstantArray *Init = cast<ConstantArray>(GV->getInitializer());
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
  468   return ConstantArray::get(AT, std::vector<Constant *>(ArraySize, C));
lib/Transforms/Utils/CtorUtils.cpp
   29   ConstantArray *OldCA = cast<ConstantArray>(GCL->getInitializer());
   29   ConstantArray *OldCA = cast<ConstantArray>(GCL->getInitializer());
   38   Constant *CA = ConstantArray::get(ATy, CAList);
   68   ConstantArray *CA = cast<ConstantArray>(GV->getInitializer());
   68   ConstantArray *CA = cast<ConstantArray>(GV->getInitializer());
   92   ConstantArray *CA = cast<ConstantArray>(GV->getInitializer());
   92   ConstantArray *CA = cast<ConstantArray>(GV->getInitializer());
lib/Transforms/Utils/FunctionComparator.cpp
  301     const ConstantArray *LA = cast<ConstantArray>(L);
  301     const ConstantArray *LA = cast<ConstantArray>(L);
  302     const ConstantArray *RA = cast<ConstantArray>(R);
  302     const ConstantArray *RA = cast<ConstantArray>(R);
lib/Transforms/Utils/ModuleUtils.cpp
   55   Constant *NewInit = ConstantArray::get(AT, CurrentCtors);
   76     auto *CA = cast<ConstantArray>(GV->getInitializer());
   76     auto *CA = cast<ConstantArray>(GV->getInitializer());
   97                                 ConstantArray::get(ATy, Init), Name);
lib/Transforms/Utils/SanitizerStats.cpp
   49   Inits.push_back(ConstantArray::get(
   88            ConstantArray::get(makeModuleStatsArrayTy(), Inits)}));
lib/Transforms/Utils/SimplifyCFG.cpp
 5080   Constant *Initializer = ConstantArray::get(ArrayTy, TableContents);
lib/Transforms/Utils/ValueMapper.cpp
  475   if (isa<ConstantArray>(C))
  476     return getVM()[V] = ConstantArray::get(cast<ArrayType>(NewTy), Ops);
  991   GV.setInitializer(ConstantArray::get(
tools/bugpoint/CrashDebugger.cpp
  220   auto *OldUsedVal = cast<ConstantArray>(UsedVar->getInitializer());
  220   auto *OldUsedVal = cast<ConstantArray>(UsedVar->getInitializer());
  230   auto *NewUsedVal = ConstantArray::get(NewValTy, Used);
tools/bugpoint/ExtractFunction.cpp
  239   return ConstantArray::get(
  254   ConstantArray *InitList = dyn_cast<ConstantArray>(GV->getInitializer());
  254   ConstantArray *InitList = dyn_cast<ConstantArray>(GV->getInitializer());
tools/clang/lib/CodeGen/BackendUtil.cpp
 1683       llvm::ConstantArray::get(ATy, UsedArray), "llvm.compiler.used");
tools/clang/lib/CodeGen/CGDecl.cpp
  872   if (isa<llvm::ConstantArray>(Init) || isa<llvm::ConstantStruct>(Init)) {
 1069       return llvm::ConstantArray::get(ArrayTy, Values);
 1269     return llvm::ConstantArray::get(cast<llvm::ArrayType>(Ty), Values);
tools/clang/lib/CodeGen/CGException.cpp
  872     llvm::Constant *FilterArray = llvm::ConstantArray::get(AType, Filters);
tools/clang/lib/CodeGen/CGExprConstant.cpp
  941       llvm::Constant *Initial = llvm::ConstantArray::get(
  964     return llvm::ConstantArray::get(
 2312     return llvm::ConstantArray::get(ATy, Array);
tools/clang/lib/CodeGen/CGObjCGNU.cpp
 1331     llvm::Constant * ProtocolArray = llvm::ConstantArray::get(ProtocolArrayTy,
tools/clang/lib/CodeGen/CGObjCMac.cpp
 3327   llvm::Constant *Init = llvm::ConstantArray::get(AT, MethodTypes);
 6063     llvm::ConstantArray::get(llvm::ArrayType::get(ObjCTypes.Int8PtrTy,
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 8605       auto *SizesArrayInit = llvm::ConstantArray::get(
tools/clang/lib/CodeGen/CGVTT.cpp
   91   llvm::Constant *Init = llvm::ConstantArray::get(ArrayType, VTTComponents);
tools/clang/lib/CodeGen/CodeGenModule.cpp
 1918       llvm::ConstantArray::get(ATy, UsedArray), Name);
 2165   llvm::Constant *Array = llvm::ConstantArray::get(llvm::ArrayType::get(
 5724     llvm::ConstantArray::get(llvm::ArrayType::get(Int8Ty, 8), Field3)
tools/clang/lib/CodeGen/ConstantInitBuilder.cpp
  254   auto constant = llvm::ConstantArray::get(type, elts);
tools/clang/lib/CodeGen/CoverageMappingGen.cpp
 1417   auto RecordsVal = llvm::ConstantArray::get(RecordsTy, FunctionRecords);
 1453     auto NamesArrVal = llvm::ConstantArray::get(NamesArrTy, FunctionNames);
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
  349     llvm::Constant *Init = llvm::ConstantArray::get(VDispMapTy, Map);
 2119   llvm::Constant *Init = llvm::ConstantArray::get(VBTableType, Offsets);
 3645   BCA->setInitializer(llvm::ConstantArray::get(ArrType, BaseClassArrayData));
 4184       llvm::ConstantArray::get(
tools/clang/lib/CodeGen/PatternInit.cpp
   71     return llvm::ConstantArray::get(ArrTy, Element);
tools/clang/tools/clang-offload-wrapper/ClangOffloadWrapper.cpp
  224     auto *ImagesData = ConstantArray::get(
tools/lldb/source/Expression/IRExecutionUnit.cpp
  982     if (llvm::ConstantArray *ctor_array = llvm::dyn_cast<llvm::ConstantArray>(
  982     if (llvm::ConstantArray *ctor_array = llvm::dyn_cast<llvm::ConstantArray>(
tools/polly/lib/CodeGen/PerfMonitor.cpp
   56                           ConstantArray::get(Ty, V), Name, nullptr,
unittests/FuzzMutate/OperationsTest.cpp
   94       ConstantArray::get(ArrayType::get(i32->getType(), 2), {i32, i32});
unittests/IR/ConstantsTest.cpp
  332   Constant *A01 = ConstantArray::get(ArrayTy, A01Vals);
  338   Constant *A0G = ConstantArray::get(ArrayTy, A0GVals);
  426     Constant *CDV = ConstantArray::get(ArrayTy, Vals);
  435     Constant *CDV = ConstantArray::get(ArrayTy, Vals);
unittests/Linker/LinkModulesTest.cpp
   58     GV->setInitializer(ConstantArray::get(AT, Init));
usr/include/c++/7.4.0/type_traits
 1983     { typedef _Up     type; };