/freebsd-13-stable/contrib/llvm-project/llvm/tools/bugpoint/ |
H A D | ExtractFunction.cpp | 233 StructType *STy = StructType::get(Int32Ty, TorList[0].first->getType()); local 237 ArrayElts.push_back(ConstantStruct::get(STy, Elts));
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGDecl.cpp | 1009 llvm::StructType *STy, 1012 const llvm::StructLayout *Layout = DL.getStructLayout(STy); 1017 for (unsigned i = 0, e = STy->getNumElements(); i != e; i++) { 1020 assert(!STy->isPacked()); 1026 CurOp = llvm::Constant::getNullValue(STy->getElementType(i)); 1040 if (NestedIntact && Values.size() == STy->getNumElements()) 1042 return llvm::ConstantStruct::getAnon(Values, STy->isPacked()); 1050 if (const auto STy = dyn_cast<llvm::StructType>(OrigTy)) 1051 return constStructWithPadding(CGM, isPattern, STy, constant); 1196 if (auto *STy 1007 constStructWithPadding(CodeGenModule &CGM, IsPattern isPattern, llvm::StructType *STy, llvm::Constant *constant) argument [all...] |
H A D | CGCall.cpp | 1278 if (llvm::StructType *STy = dyn_cast<llvm::StructType>(Val->getType())) { 1279 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 1464 llvm::StructType *STy = dyn_cast<llvm::StructType>(AI.getCoerceToType()); 1465 if (AI.isDirect() && AI.getCanBeFlattened() && STy) { 1466 IRArgs.NumberOfArgs = STy->getNumElements(); 2607 llvm::StructType *STy = dyn_cast<llvm::StructType>(ArgI.getCoerceToType()); 2608 if (ArgI.isDirect() && ArgI.getCanBeFlattened() && STy && 2609 STy->getNumElements() > 1) { 2610 uint64_t SrcSize = CGM.getDataLayout().getTypeAllocSize(STy); 2616 AddrToStoreInto = Builder.CreateElementBitCast(Ptr, STy); [all...] |
H A D | TargetInfo.cpp | 3354 if (llvm::StructType *STy = dyn_cast<llvm::StructType>(IRType)) { 3355 const llvm::StructLayout *SL = TD.getStructLayout(STy); 3358 return ContainsFloatAtOffset(STy->getElementType(Elt), IROffset, TD); 3440 if (llvm::StructType *STy = dyn_cast<llvm::StructType>(IRType)) { 3442 const llvm::StructLayout *SL = getDataLayout().getStructLayout(STy); 3447 return GetINTEGERTypeAtOffset(STy->getElementType(FieldIdx), IROffset, 8641 if (auto STy = dyn_cast<llvm::StructType>(Ty)) { 8644 for (auto T : STy->elements()) { 8651 return STy; 8652 if (STy [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/ |
H A D | AsmWriter.cpp | 570 StructType *STy = *I; local 573 if (STy->isLiteral()) 576 if (STy->getName().empty()) 577 Type2Number[STy] = NextNumber++; 579 *NextToUse++ = STy; 623 StructType *STy = cast<StructType>(Ty); local 625 if (STy->isLiteral()) 626 return printStructBody(STy, OS); 628 if (!STy->getName().empty()) 629 return PrintLLVMName(OS, STy 636 OS << "%\\"type " << STy << '\\"'; local 670 printStructBody(StructType *STy, raw_ostream &OS) argument [all...] |
H A D | DataLayout.cpp | 602 StructLayout *&operator[](StructType *STy) { 603 return LayoutInfo[STy]; 835 if (StructType *STy = GTI.getStructTypeOrNull()) { 840 const StructLayout *Layout = getStructLayout(STy);
|
H A D | Type.cpp | 102 if (auto *STy = dyn_cast<StructType>(this)) { 103 unsigned NumElements = STy->getNumElements(); 105 if (!STy->getElementType(i)->isEmptyTy())
|
H A D | Verifier.cpp | 647 StructType *STy = dyn_cast<StructType>(ATy->getElementType()); local 651 Assert(STy && 652 (STy->getNumElements() == 2 || STy->getNumElements() == 3) && 653 STy->getTypeAtIndex(0u)->isIntegerTy(32) && 654 STy->getTypeAtIndex(1) == FuncPtrTy, 656 Assert(STy->getNumElements() == 3, 659 Type *ETy = STy->getTypeAtIndex(2);
|
H A D | AutoUpgrade.cpp | 876 StructType *STy = dyn_cast<StructType>(ATy->getElementType()); 877 if (!STy || STy->getNumElements() != 2) 882 auto EltTy = StructType::get(STy->getElementType(0), STy->getElementType(1),
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ModuleSummaryAnalysis.cpp | 509 StructType *STy = dyn_cast<StructType>(C->getType()); local 510 assert(STy); 513 for (StructType::element_iterator EB = STy->element_begin(), EI = EB, 514 EE = STy->element_end();
|
H A D | ValueTracking.cpp | 1464 if (StructType *STy = GTI.getStructTypeOrNull()) { 1476 const StructLayout *SL = Q.DL.getStructLayout(STy); 2143 if (StructType *STy = GTI.getStructTypeOrNull()) { 2146 const StructLayout *SL = Q.DL.getStructLayout(STy); 3722 StructType *STy = dyn_cast<StructType>(IndexedType); local 3723 if (STy) { 3727 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 3731 To = BuildSubAggregate(From, To, STy->getElementType(i), Idxs, IdxSkip, 6453 if (StructType *STy = GTI.getStructTypeOrNull()) { 6454 Offset += DL.getStructLayout(STy) [all...] |
H A D | BasicAliasAnalysis.cpp | 545 if (StructType *STy = GTI.getStructTypeOrNull()) { 552 DL.getStructLayout(STy)->getElementOffset(FieldNo);
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | ScalarEvolutionExpander.cpp | 471 while (StructType *STy = dyn_cast<StructType>(ElTy)) { 474 if (STy->getNumElements() == 0) break; 481 const StructLayout &SL = *DL.getStructLayout(STy); 487 ElTy = STy->getTypeAtIndex(ElIdx); 498 ElTy = STy->getTypeAtIndex(0u); 1349 Type *STy = S->getType(); local 1350 Type *IntTy = SE.getEffectiveSCEVType(STy); 1395 Type *ExpandTy = PostLoopScale ? IntTy : STy; 1399 DL.isNonIntegralPointerType(STy) ? Normalized->getType() : ExpandTy;
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | InlineAsmLowering.cpp | 332 if (StructType *STy = dyn_cast<StructType>(Call.getType())) { 334 TLI->getSimpleValueType(DL, STy->getElementType(ResNo));
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVPTXAsmPrinter.cpp | 1375 auto *STy = dyn_cast<StructType>(Ty); 1376 if (STy) { 1380 for (unsigned i = 0, e = STy->getNumElements(); i != e; i++) { 1381 Type *ETy = STy->getElementType(i);
|
H A D | NVPTXISelLowering.cpp | 168 if (StructType *STy = dyn_cast<StructType>(Ty)) { 169 auto const *SL = DL.getStructLayout(STy); 171 for(auto *EI : STy->elements()) { 2437 auto *STy = dyn_cast<StructType>(PTy->getElementType()); 2438 if (!STy || STy->isLiteral()) 2442 STy->getName()) != std::end(specialTypes); 2536 if (StructType *STy = dyn_cast<StructType>(Ty)) 2537 aggregateIsPacked = STy->isPacked();
|
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | TargetTransformInfoImpl.h | 772 if (StructType *STy = GTI.getStructTypeOrNull()) { 776 BaseOffset += DL.getStructLayout(STy)->getElementOffset(Field);
|
H A D | ScalarEvolutionExpressions.h | 502 bool isOffsetOf(Type *&STy, Constant *&FieldNo) const;
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | VPlan.cpp | 830 Type *STy = CanonicalIV->getType(); local 839 Indices.push_back(ConstantInt::get(STy, Part * VF + Lane)); 841 // element pushed back into Indices is ConstantInt::get(STy, Part)
|
H A D | LoopVectorize.cpp | 1932 Type *STy = Val->getType()->getScalarType(); 1933 assert((STy->isIntegerTy() || STy->isFloatingPointTy()) && 1935 assert(Step->getType() == STy && "Step has wrong type"); 1939 if (STy->isIntegerTy()) { 1942 Indices.push_back(ConstantInt::get(STy, StartIdx + i)); 1960 Indices.push_back(ConstantFP::get(STy, (double)(StartIdx + i)));
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Bitcode/Writer/ |
H A D | ValueEnumerator.cpp | 887 if (StructType *STy = dyn_cast<StructType>(Ty)) 888 if (!STy->isLiteral())
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/ |
H A D | ExecutionEngine.cpp | 613 if(StructType *STy = dyn_cast<StructType>(C->getType())) { 614 unsigned int elemNum = STy->getNumElements(); 617 Type *ElemTy = STy->getElementType(i);
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonCommonGEP.cpp | 249 StructType *STy = cast<StructType>(GN.PTy); local 250 if (!STy->isLiteral()) 253 OS << "<anon-struct>:" << *STy; local
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyFastISel.cpp | 272 if (StructType *STy = GTI.getStructTypeOrNull()) { 273 const StructLayout *SL = DL.getStructLayout(STy);
|
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Constants.h | 934 static Constant *getOffsetOf(StructType *STy, unsigned FieldNo);
|