Home
last modified time | relevance | path

Searched refs:ConstantDataSequential (Results 1 – 25 of 33) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DConstant.h498 class ConstantDataSequential : public Constant {
500 ConstantDataSequential(ClassID ID, llvm::ConstantDataSequential *C, in ConstantDataSequential() function
510 return llvm::ConstantDataSequential::isElementTypeCompatible(Ty->LLVMTy); in isElementTypeCompatible()
515 return cast<llvm::ConstantDataSequential>(Val)->getElementAsInteger(ElmIdx); in getElementAsInteger()
520 return cast<llvm::ConstantDataSequential>(Val)->getElementAsAPInt(ElmIdx); in getElementAsAPInt()
525 return cast<llvm::ConstantDataSequential>(Val)->getElementAsAPFloat(ElmIdx); in getElementAsAPFloat()
530 return cast<llvm::ConstantDataSequential>(Val)->getElementAsFloat(ElmIdx); in getElementAsFloat()
535 return cast<llvm::ConstantDataSequential>(Val)->getElementAsDouble(ElmIdx); in getElementAsDouble()
542 cast<llvm::ConstantDataSequential>(Val)->getElementAsConstant(ElmIdx)); in getElementAsConstant()
547 cast<llvm::ConstantDataSequential>(Val)->getElementType()); in getElementType()
[all …]
H A DType.h30 class ConstantDataSequential; variable
70 friend class ConstantDataSequential; // For LLVMTy. variable
H A DContext.h136 friend class ConstantDataSequential; // For getOrCreateConstant().
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h593 class ConstantDataSequential : public ConstantData {
605 std::unique_ptr<ConstantDataSequential> Next;
610 explicit ConstantDataSequential(Type *ty, ValueTy VT, const char *Data)
616 ConstantDataSequential(const ConstantDataSequential &) = delete;
702 class ConstantDataArray final : public ConstantDataSequential {
703 friend class ConstantDataSequential;
706 : ConstantDataSequential(ty, ConstantDataArrayVal, Data) {}
776 class ConstantDataVector final : public ConstantDataSequential {
777 friend class ConstantDataSequential;
780 : ConstantDataSequential(ty, ConstantDataVectorVal, Data),
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp471 if (const auto *CDS = dyn_cast<ConstantDataSequential>(this)) in getAggregateElement()
1346 if (ConstantDataSequential::isElementTypeCompatible(C->getType())) in getImpl()
1466 if (ConstantDataSequential::isElementTypeCompatible(C->getType())) in getImpl()
1489 ConstantDataSequential::isElementTypeCompatible(V->getType())) in getSplat()
2815 Type *ConstantDataSequential::getElementType() const { in getElementType()
2821 StringRef ConstantDataSequential::getRawDataValues() const { in getRawDataValues()
2825 bool ConstantDataSequential::isElementTypeCompatible(Type *Ty) { in isElementTypeCompatible()
2841 uint64_t ConstantDataSequential::getNumElements() const { in getNumElements()
2847 uint64_t ConstantDataSequential::getElementByteSize() const { in getElementByteSize()
2852 const char *ConstantDataSequential::getElementPointer(uint64_t Elt) const { in getElementPointer()
[all …]
H A DStructuralHash.cpp87 if (const auto *Seq = dyn_cast<ConstantDataSequential>(C)) in hashGlobalVariable()
139 if (const auto *Seq = dyn_cast<ConstantDataSequential>(C)) { in hashConstant()
H A DCore.cpp1632 return wrap(unwrap<ConstantDataSequential>(C)->getElementAsConstant(idx)); in LLVMGetElementAsConstant()
1636 return unwrap<ConstantDataSequential>(C)->isString(); in LLVMIsConstantString()
1640 StringRef Str = unwrap<ConstantDataSequential>(C)->getAsString(); in LLVMGetAsString()
1646 StringRef Str = unwrap<ConstantDataSequential>(C)->getRawDataValues(); in LLVMGetRawDataValues()
H A DInstructions.cpp1846 if (const auto *CDS = dyn_cast<ConstantDataSequential>(Mask)) { in isValidOperands()
1874 if (auto *CDS = dyn_cast<ConstantDataSequential>(Mask)) { in getShuffleMask()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAnnotation2Metadata.cpp50 auto *StrData = dyn_cast<ConstantDataSequential>(StrC->getOperand(0)); in convertAnnotation2Metadata()
/freebsd/contrib/llvm-project/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp106 if (const ConstantDataSequential *CDS = dyn_cast<ConstantDataSequential>(C)) { in IsNullTerminatedString()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVVMReflect.cpp161 dyn_cast<ConstantDataSequential>(GlobalStr->getOperand(0)); in handleReflectFunction()
H A DNVPTXAsmPrinter.cpp1653 if (isa<ConstantAggregate>(CPV) || isa<ConstantDataSequential>(CPV)) { in bufferLEByte()
1699 if (const auto *CDS = dyn_cast<ConstantDataSequential>(CPV)) { in bufferAggregateConstant()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILCBufferAccess.cpp74 iterator_range<ConstantDataSequential::user_iterator> users() { in users()
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DOffloadBinary.cpp129 auto *CDS = dyn_cast<ConstantDataSequential>(GV->getInitializer()); in extractFromBitcode()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/DXILWriter/
H A DDXILBitcodeWriter.cpp2034 } else if (isa<ConstantDataSequential>(C) && in writeConstants()
2035 cast<ConstantDataSequential>(C)->isString()) { in writeConstants()
2036 const ConstantDataSequential *Str = cast<ConstantDataSequential>(C); in writeConstants()
2061 } else if (const ConstantDataSequential *CDS = in writeConstants()
2062 dyn_cast<ConstantDataSequential>(C)) { in writeConstants()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFunctionComparator.cpp366 if (const auto *SeqL = dyn_cast<ConstantDataSequential>(L)) { in cmpConstants()
367 const auto *SeqR = cast<ConstantDataSequential>(R); in cmpConstants()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DIRForTarget.cpp472 ConstantDataSequential *string_array = nullptr; in RewriteObjCConstString()
475 string_array = dyn_cast<ConstantDataSequential>(cstr->getInitializer()); in RewriteObjCConstString()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp3656 static int isRepeatedByteSequence(const ConstantDataSequential *V) { in isRepeatedByteSequence()
3696 if (const ConstantDataSequential *CDS = dyn_cast<ConstantDataSequential>(V)) in isRepeatedByteSequence()
3715 const DataLayout &DL, const ConstantDataSequential *CDS, AsmPrinter &AP, in emitGlobalConstantDataSequential()
4111 if (const ConstantDataSequential *CDS = dyn_cast<ConstantDataSequential>(CV)) in emitGlobalConstantImpl()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDecl.cpp926 if (llvm::ConstantDataSequential *CDS = in canEmitInitWithFewStoresAfterBZero()
927 dyn_cast<llvm::ConstantDataSequential>(Init)) { in canEmitInitWithFewStoresAfterBZero()
958 if (llvm::ConstantDataSequential *CDS = in emitStoresForInitAfterBZero()
959 dyn_cast<llvm::ConstantDataSequential>(Init)) { in emitStoresForInitAfterBZero()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp1189 if (const ConstantDataSequential *CDS = in InitializeMemory()
1190 dyn_cast<ConstantDataSequential>(Init)) { in InitializeMemory()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FixupVectorConstants.cpp125 if (auto *CDS = dyn_cast<ConstantDataSequential>(C)) { in extractConstantBits()
H A DX86MCInstLower.cpp1588 } else if (auto *CDS = dyn_cast<ConstantDataSequential>(COp)) { in printConstant()
1675 if (auto *CDS = dyn_cast<ConstantDataSequential>(C)) { in printExtend()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp2880 } else if (isa<ConstantDataSequential>(C) && in writeConstants()
2881 cast<ConstantDataSequential>(C)->isString()) { in writeConstants()
2882 const ConstantDataSequential *Str = cast<ConstantDataSequential>(C); in writeConstants()
2907 } else if (const ConstantDataSequential *CDS = in writeConstants()
2908 dyn_cast<ConstantDataSequential>(C)) { in writeConstants()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DTargetTransformInfo.cpp929 } else if (const auto *CDS = dyn_cast<ConstantDataSequential>(V)) { in getOperandInfo()
H A DConstantFolding.cpp514 isa<ConstantDataSequential>(C)) { in ReadDataFromGlobal()
692 if (!isa<ConstantAggregate>(Base) && !isa<ConstantDataSequential>(Base)) in getConstantAtOffset()

12