Home
last modified time | relevance | path

Searched refs:CDS (Results 1 – 23 of 23) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Analysis/
H A DLoopUnrollAnalyzer.cpp116 ConstantDataSequential *CDS = in visitLoad() local
118 if (!CDS) in visitLoad()
124 if (CDS->getElementType() != I.getType()) in visitLoad()
127 unsigned ElemSize = CDS->getElementType()->getPrimitiveSizeInBits() / 8U; in visitLoad()
137 if (Index >= CDS->getNumElements()) { in visitLoad()
143 Constant *CV = CDS->getElementAsConstant(Index); in visitLoad()
H A DTargetTransformInfo.cpp741 } else if (const auto *CDS = dyn_cast<ConstantDataSequential>(V)) { in getOperandInfo() local
743 for (unsigned I = 0, E = CDS->getNumElements(); I != E; ++I) { in getOperandInfo()
744 if (auto *CI = dyn_cast<ConstantInt>(CDS->getElementAsConstant(I))) in getOperandInfo()
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dnegate-add-zero.ll9 %"struct.CDS::DefaultAlloc" = type <{ i8 }>
10 %"struct.CDS::SingularError" = type { %"struct.CDS::exception" }
11 %"struct.CDS::auto_ptr<IVMAtom>" = type { ptr }
12 %"struct.CDS::exception" = type { [300 x i8] }
31 …%"struct.CDSVector<Vec3,0,CDS::DefaultAlloc>" = type { %"struct.CDSVectorBase<Vec3,CDS::DefaultAll…
32 …%"struct.CDSVector<double,0,CDS::DefaultAlloc>" = type { %"struct.CDSVectorBase<double,CDS::Defaul…
33 %"struct.CDSVectorBase<Vec3,CDS::DefaultAlloc>" = type { ptr }
34 %"struct.CDSVectorBase<double,CDS::DefaultAlloc>" = type { ptr }
35 …%"struct.CDSVectorRep<Vec3,CDS::DefaultAlloc>" = type { i32, %"struct.CDS::DefaultAlloc", ptr, i32…
36 …%"struct.CDSVectorRep<double,CDS::DefaultAlloc>" = type { i32, %"struct.CDS::DefaultAlloc", ptr, i…
[all …]
/llvm-project-15.0.7/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp106 if (const ConstantDataSequential *CDS = dyn_cast<ConstantDataSequential>(C)) { in IsNullTerminatedString() local
107 unsigned NumElts = CDS->getNumElements(); in IsNullTerminatedString()
110 if (CDS->getElementAsInteger(NumElts-1) != 0) in IsNullTerminatedString()
115 if (CDS->getElementAsInteger(i) == 0) in IsNullTerminatedString()
/llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/
H A DAsmPrinter.cpp2913 return isRepeatedByteSequence(CDS); in isRepeatedByteSequence()
2934 int Value = isRepeatedByteSequence(CDS, DL); in emitGlobalConstantDataSequential()
2936 uint64_t Bytes = DL.getTypeAllocSize(CDS->getType()); in emitGlobalConstantDataSequential()
2943 if (CDS->isString()) in emitGlobalConstantDataSequential()
2944 return AP.OutStreamer->emitBytes(CDS->getAsString()); in emitGlobalConstantDataSequential()
2947 unsigned ElementByteSize = CDS->getElementByteSize(); in emitGlobalConstantDataSequential()
2948 if (isa<IntegerType>(CDS->getElementType())) { in emitGlobalConstantDataSequential()
2954 AP.OutStreamer->emitIntValue(CDS->getElementAsInteger(I), in emitGlobalConstantDataSequential()
2958 Type *ET = CDS->getElementType(); in emitGlobalConstantDataSequential()
2965 unsigned Size = DL.getTypeAllocSize(CDS->getType()); in emitGlobalConstantDataSequential()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86MCInstLower.cpp2294 if (auto *CDS = dyn_cast<ConstantDataSequential>(C)) { in addConstantComments() local
2297 for (int i = 0, NumElements = CDS->getNumElements(); i < NumElements; in addConstantComments()
2301 if (CDS->getElementType()->isIntegerTy()) in addConstantComments()
2302 printConstant(CDS->getElementAsAPInt(i), CS); in addConstantComments()
2303 else if (CDS->getElementType()->isHalfTy() || in addConstantComments()
2304 CDS->getElementType()->isFloatTy() || in addConstantComments()
2305 CDS->getElementType()->isDoubleTy()) in addConstantComments()
2306 printConstant(CDS->getElementAsAPFloat(i), CS); in addConstantComments()
/llvm-project-15.0.7/llvm/lib/Target/DirectX/DXILWriter/
H A DDXILBitcodeWriter.cpp2070 } else if (const ConstantDataSequential *CDS = in writeConstants() local
2073 Type *EltTy = CDS->getType()->getArrayElementType(); in writeConstants()
2075 for (unsigned i = 0, e = CDS->getNumElements(); i != e; ++i) in writeConstants()
2076 Record.push_back(CDS->getElementAsInteger(i)); in writeConstants()
2078 for (unsigned i = 0, e = CDS->getNumElements(); i != e; ++i) { in writeConstants()
2083 F = CDS->getElementAsFloat(i); in writeConstants()
2088 for (unsigned i = 0, e = CDS->getNumElements(); i != e; ++i) { in writeConstants()
2093 F = CDS->getElementAsDouble(i); in writeConstants()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGDecl.cpp915 if (llvm::ConstantDataSequential *CDS = in canEmitInitWithFewStoresAfterBZero() local
917 for (unsigned i = 0, e = CDS->getNumElements(); i != e; ++i) { in canEmitInitWithFewStoresAfterBZero()
918 llvm::Constant *Elt = CDS->getElementAsConstant(i); in canEmitInitWithFewStoresAfterBZero()
947 if (llvm::ConstantDataSequential *CDS = in emitStoresForInitAfterBZero() local
949 for (unsigned i = 0, e = CDS->getNumElements(); i != e; ++i) { in emitStoresForInitAfterBZero()
950 llvm::Constant *Elt = CDS->getElementAsConstant(i); in emitStoresForInitAfterBZero()
H A DCGExprConstant.cpp351 if (auto *CDS = dyn_cast<llvm::ConstantDataSequential>(C)) { in split() local
355 CharUnits ElemSize = getSize(CDS->getElementType()); in split()
357 llvm::map_range(llvm::seq(0u, CDS->getNumElements()), in split()
359 return CDS->getElementAsConstant(Elem); in split()
363 llvm::seq(0u, CDS->getNumElements()), in split()
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1909 if (const ConstantDataSequential *CDS = in bufferAggregateConstant() local
1911 if (CDS->getNumElements()) in bufferAggregateConstant()
1912 for (unsigned i = 0; i < CDS->getNumElements(); ++i) in bufferAggregateConstant()
1913 bufferLEByte(cast<Constant>(CDS->getElementAsConstant(i)), 0, in bufferAggregateConstant()
/llvm-project-15.0.7/clang/tools/clang-linker-wrapper/
H A DClangLinkerWrapper.cpp365 auto *CDS = dyn_cast<ConstantDataSequential>(GV->getInitializer()); in extractFromBitcode() local
366 if (!CDS) in extractFromBitcode()
369 MemoryBufferRef Contents(CDS->getAsString(), M->getName()); in extractFromBitcode()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp1167 if (const ConstantDataSequential *CDS = in InitializeMemory() local
1170 StringRef Data = CDS->getRawDataValues(); in InitializeMemory()
/llvm-project-15.0.7/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp2576 } else if (const ConstantDataSequential *CDS = in writeConstants() local
2579 Type *EltTy = CDS->getElementType(); in writeConstants()
2581 for (unsigned i = 0, e = CDS->getNumElements(); i != e; ++i) in writeConstants()
2582 Record.push_back(CDS->getElementAsInteger(i)); in writeConstants()
2584 for (unsigned i = 0, e = CDS->getNumElements(); i != e; ++i) in writeConstants()
2586 CDS->getElementAsAPFloat(i).bitcastToAPInt().getLimitedValue()); in writeConstants()
/llvm-project-15.0.7/llvm/lib/IR/
H A DInstructions.cpp2106 if (const auto *CDS = dyn_cast<ConstantDataSequential>(Mask)) { in isValidOperands() local
2110 if (CDS->getElementAsInteger(i) >= V1Size*2) in isValidOperands()
2140 if (auto *CDS = dyn_cast<ConstantDataSequential>(Mask)) { in getShuffleMask() local
2142 Result.push_back(CDS->getElementAsInteger(i)); in getShuffleMask()
H A DConstants.cpp432 if (const auto *CDS = dyn_cast<ConstantDataSequential>(this)) in getAggregateElement() local
433 return Elt < CDS->getNumElements() ? CDS->getElementAsConstant(Elt) in getAggregateElement()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZScheduleZ196.td569 (instregex "CDS(Y)?$")>;
H A DSystemZScheduleZEC12.td581 (instregex "CDS(Y)?$")>;
H A DSystemZScheduleZ13.td610 (instregex "CDS(Y)?$")>;
H A DSystemZScheduleZ16.td634 (instregex "CDS(Y)?$")>;
H A DSystemZScheduleZ15.td634 (instregex "CDS(Y)?$")>;
H A DSystemZScheduleZ14.td620 (instregex "CDS(Y)?$")>;
H A DSystemZInstrInfo.td1871 defm CDS : CmpSwapRSPair<"cds", 0xBB, 0xEB31, null_frag, GR128>;
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp1579 if (const ConstantDataSequential *CDS = in getValueImpl() local
1582 for (unsigned i = 0, e = CDS->getNumElements(); i != e; ++i) { in getValueImpl()
1583 SDNode *Val = getValue(CDS->getElementAsConstant(i)).getNode(); in getValueImpl()
1590 if (isa<ArrayType>(CDS->getType())) in getValueImpl()