Home
last modified time | relevance | path

Searched refs:ConstantStruct (Results 1 – 25 of 82) sorted by relevance

1234

/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DCtorUtils.cpp72 ConstantStruct *CS = cast<ConstantStruct>(V); in parseGlobalCtors()
99 ConstantStruct *CS = cast<ConstantStruct>(V); in findGlobalCtors()
H A DSanitizerStats.cpp84 ConstantStruct::getAnon( in finish()
H A DFunctionComparator.cpp330 const ConstantStruct *LS = cast<ConstantStruct>(L); in cmpConstants()
331 const ConstantStruct *RS = cast<ConstantStruct>(R); in cmpConstants()
H A DValueMapper.cpp522 if (isa<ConstantStruct>(C)) in mapValue()
523 return getVM()[V] = ConstantStruct::get(cast<StructType>(NewTy), Ops); in mapValue()
1043 auto *S = cast<ConstantStruct>(V); in mapAppendingVariable()
1047 NewV = ConstantStruct::get(cast<StructType>(EltTy), E1, E2, Null); in mapAppendingVariable()
H A DLowerGlobalDtors.cpp101 auto *CS = dyn_cast<ConstantStruct>(O); in runImpl()
/llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/
H A DCoroCleanup.cpp86 auto *Target = cast<ConstantStruct>( in lower()
89 auto *Source = cast<ConstantStruct>( in lower()
98 auto *NewFuncPtrStruct = ConstantStruct::get( in lower()
/llvm-project-15.0.7/llvm/lib/Target/BPF/
H A DBPFISelDAGToDAG.cpp90 bool fillConstantStruct(const DataLayout &DL, const ConstantStruct *CS,
354 if (const ConstantStruct *CS = dyn_cast<ConstantStruct>(Init)) in getConstantFieldValue()
419 if (const ConstantStruct *CVS = dyn_cast<ConstantStruct>(CV)) in fillGenericConstant()
451 const ConstantStruct *CS, in fillConstantStruct()
/llvm-project-15.0.7/llvm/tools/bugpoint/
H A DExtractFunction.cpp237 ArrayElts.push_back(ConstantStruct::get(STy, Elts)); in GetTorInit()
259 if (ConstantStruct *CS = in SplitStaticCtorDtor()
260 dyn_cast<ConstantStruct>(InitList->getOperand(i))) { in SplitStaticCtorDtor()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DAnnotation2Metadata.cpp47 auto *OpC = dyn_cast<ConstantStruct>(&Op); in convertAnnotation2Metadata()
H A DGlobalSplit.cpp48 auto *Init = dyn_cast_or_null<ConstantStruct>(GV.getInitializer()); in splitGlobal()
/llvm-project-15.0.7/llvm/tools/llvm-diff/lib/
H A DDifferenceEngine.cpp495 if (isa<ConstantStruct>(L)) { in equivalentAsOperands()
496 const ConstantStruct *CSL = cast<ConstantStruct>(L); in equivalentAsOperands()
497 const ConstantStruct *CSR = cast<ConstantStruct>(R); in equivalentAsOperands()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUCtorDtorLowering.cpp61 auto *CS = cast<ConstantStruct>(V); in createInitOrFiniKernel()
/llvm-project-15.0.7/llvm/lib/LTO/
H A DLTOModule.cpp269 const ConstantStruct *c = dyn_cast<ConstantStruct>(clgv->getInitializer()); in addObjCClass()
303 const ConstantStruct *c = dyn_cast<ConstantStruct>(clgv->getInitializer()); in addObjCCategory()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DPatternInit.cpp82 return llvm::ConstantStruct::get(StructTy, Struct); in initializationPatternFor()
H A DConstantInitBuilder.cpp292 constant = llvm::ConstantStruct::get(ty, elts); in finishStruct()
294 constant = llvm::ConstantStruct::getAnon(elts, Packed); in finishStruct()
H A DCGExprConstant.cpp503 llvm::StructType *STy = llvm::ConstantStruct::getTypeForElements( in buildFrom()
513 return llvm::ConstantStruct::get(STy, Packed ? PackedElems : UnpackedElems); in buildFrom()
541 Elems[First] = llvm::ConstantStruct::get(STy, Elems[First]); in condense()
1006 return llvm::ConstantStruct::get(SType, Elements); in EmitArrayConstant()
1101 return llvm::ConstantStruct::get(STy, Elts); in VisitCastExpr()
1732 return llvm::ConstantStruct::getAnon(elts); in emitForMemory()
2096 return llvm::ConstantStruct::get(STy, Complex); in tryEmitPrivate()
2119 return llvm::ConstantStruct::get(STy, Complex); in tryEmitPrivate()
2321 return llvm::ConstantStruct::get(structure, elements); in EmitNullConstant()
/llvm-project-15.0.7/llvm/lib/Transforms/ObjCARC/
H A DObjCARCAPElim.cpp132 Function *F = dyn_cast<Function>(cast<ConstantStruct>(Op)->getOperand(1)); in runImpl()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DShadowStackGCLowering.cpp129 ConstantStruct::get(FrameMapTy, BaseElts), in GetFrameMap()
135 Constant *FrameMap = ConstantStruct::get(STy, DescriptorElts); in GetFrameMap()
H A DLowerEmuTLS.cpp153 ConstantStruct::get(EmuTlsVarType, ElementValueArray)); in addEmuTlsVar()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/
H A DExecutionUtils.cpp52 ConstantStruct *CS = dyn_cast<ConstantStruct>(InitList->getOperand(I)); in operator *()
/llvm-project-15.0.7/clang/tools/clang-linker-wrapper/
H A DOffloadWrapper.cpp199 ImagesInits.push_back(ConstantStruct::get(getDeviceImageTy(M), ImageB, in createBinDesc()
217 auto *DescInit = ConstantStruct::get( in createBinDesc()
321 ConstantStruct::get(getFatbinWrapperTy(M), FatbinWrapper); in createFatbinDesc()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DPatternMatch.cpp1040 auto *UP = ConstantStruct::get(StTy, {U, P}); in TEST_F()
1041 EXPECT_TRUE(match(ConstantStruct::get(StTy2, {U, UP}), m_Undef())); in TEST_F()
1042 EXPECT_TRUE(match(ConstantStruct::get(StTy2, {P, UP}), m_Undef())); in TEST_F()
1043 EXPECT_TRUE(match(ConstantStruct::get(StTy3, {UP, U}), m_Undef())); in TEST_F()
1044 EXPECT_TRUE(match(ConstantStruct::get(StTy3, {UP, P}), m_Undef())); in TEST_F()
1046 EXPECT_FALSE(match(ConstantStruct::get(StTy, {U, Zero}), m_Undef())); in TEST_F()
1047 EXPECT_FALSE(match(ConstantStruct::get(StTy, {Zero, U}), m_Undef())); in TEST_F()
1048 EXPECT_FALSE(match(ConstantStruct::get(StTy, {P, Zero}), m_Undef())); in TEST_F()
1049 EXPECT_FALSE(match(ConstantStruct::get(StTy, {Zero, P}), m_Undef())); in TEST_F()
1051 EXPECT_FALSE(match(ConstantStruct::get(StTy2, {Zero, UP}), m_Undef())); in TEST_F()
[all …]
H A DConstantsTest.cpp724 Constant *CUU = ConstantStruct::get(STy, {CU, CU}); in TEST()
725 Constant *CPP = ConstantStruct::get(STy, {CP, CP}); in TEST()
726 Constant *CUP = ConstantStruct::get(STy, {CU, CP}); in TEST()
727 Constant *CPU = ConstantStruct::get(STy, {CP, CU}); in TEST()
/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVAsmPrinter.cpp435 ConstantStruct *CS = cast<ConstantStruct>(Op); in outputAnnotations()
/llvm-project-15.0.7/clang/tools/clang-offload-wrapper/
H A DClangOffloadWrapper.cpp249 ImagesInits.push_back(ConstantStruct::get(getDeviceImageTy(), ImageB, in createBinDesc()
267 auto *DescInit = ConstantStruct::get( in createBinDesc()

1234