/freebsd-11.0-release/contrib/llvm/lib/IR/ |
H A D | Operator.cpp | 30 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 32 const StructLayout *SL = DL.getStructLayout(STy);
|
H A D | TypeFinder.cpp | 107 if (StructType *STy = dyn_cast<StructType>(Ty)) 108 if (!OnlyNamed || STy->hasName()) 109 StructTypes.push_back(STy);
|
H A D | ConstantFold.cpp | 119 if (StructType *STy = dyn_cast<StructType>(ElTy)) { 120 if (STy->getNumElements() == 0) break; 121 ElTy = STy->getElementType(0); 123 } else if (SequentialType *STy = 126 ElTy = STy->getElementType(); 359 if (StructType *STy = dyn_cast<StructType>(Ty)) 360 if (!STy->isPacked()) { 361 unsigned NumElems = STy->getNumElements(); 367 getFoldedSizeOf(STy->getElementType(0), DestTy, true); 371 getFoldedSizeOf(STy 2003 isIndexInRangeOfSequentialType(SequentialType *STy, const ConstantInt *CI) argument [all...] |
H A D | InlineAsm.cpp | 287 StructType *STy = dyn_cast<StructType>(Ty->getReturnType()); local 288 if (!STy || STy->getNumElements() != NumOutputs)
|
H A D | Type.cpp | 103 if (auto *STy = dyn_cast<StructType>(this)) { 104 unsigned NumElements = STy->getNumElements(); 106 if (!STy->getElementType(i)->isEmptyTy()) 578 if (auto *STy = dyn_cast<StructType>(this)) { 582 return STy->getElementType(Idx); 589 if (auto *STy = dyn_cast<StructType>(this)) { 591 return STy->getElementType(Idx); 598 if (auto *STy = dyn_cast<StructType>(this)) { 607 return CU && CU->getZExtValue() < STy->getNumElements(); 615 if (auto *STy [all...] |
H A D | DataLayout.cpp | 537 StructLayout *&operator[](StructType *STy) { 538 return LayoutInfo[STy]; 736 if (StructType *STy = dyn_cast<StructType>(*TI)) { 743 const StructLayout *Layout = getStructLayout(STy); 749 Ty = STy->getElementType(FieldNo);
|
H A D | AsmWriter.cpp | 437 StructType *STy = *I; local 440 if (STy->isLiteral()) 443 if (STy->getName().empty()) 444 NumberedTypes[STy] = NextNumber++; 446 *NextToUse++ = STy; 490 StructType *STy = cast<StructType>(Ty); local 492 if (STy->isLiteral()) 493 return printStructBody(STy, OS); 495 if (!STy->getName().empty()) 496 return PrintLLVMName(OS, STy 502 OS << "%\\"type " << STy << '\\"'; local 531 printStructBody(StructType *STy, raw_ostream &OS) argument [all...] |
/freebsd-11.0-release/contrib/llvm/lib/Transforms/Utils/ |
H A D | MetaRenamer.cpp | 104 for (StructType *STy : StructTypes) { 105 if (STy->isLiteral() || STy->getName().empty()) continue; 108 STy->setName((Twine("struct.") +
|
/freebsd-11.0-release/contrib/llvm/lib/Target/ |
H A D | Target.cpp | 121 StructType *STy = unwrap<StructType>(StructTy); local 122 return unwrap(TD)->getStructLayout(STy)->getElementContainingOffset(Offset); 127 StructType *STy = unwrap<StructType>(StructTy); local 128 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element);
|
/freebsd-11.0-release/contrib/llvm/lib/Transforms/IPO/ |
H A D | IPConstantPropagation.cpp | 171 StructType *STy = dyn_cast<StructType>(F.getReturnType()); local 172 if (STy) 173 for (unsigned i = 0, e = STy->getNumElements(); i < e; ++i) 174 RetVals.push_back(UndefValue::get(STy->getElementType(i))); 189 if (!STy) 239 if (!STy) {
|
H A D | StripSymbols.cpp | 181 StructType *STy = StructTypes[i]; local 182 if (STy->isLiteral() || STy->getName().empty()) continue; 184 if (PreserveDbgInfo && STy->getName().startswith("llvm.dbg")) 187 STy->setName("");
|
H A D | ArgumentPromotion.cpp | 287 if (StructType *STy = dyn_cast<StructType>(AgTy)) { 288 if (maxElements > 0 && STy->getNumElements() > maxElements) { 297 for (const auto *EltTy : STy->elements()) { 317 if (StructType *STy = dyn_cast<StructType>(AgTy)) { 319 for (const auto *EltTy : STy->elements()) { 652 StructType *STy = cast<StructType>(AgTy); local 653 Params.insert(Params.end(), STy->element_begin(), STy->element_end()); 787 StructType *STy = cast<StructType>(AgTy); local 790 for (unsigned i = 0, e = STy 915 StructType *STy = cast<StructType>(AgTy); local [all...] |
H A D | GlobalOpt.cpp | 133 SequentialType *STy = cast<SequentialType>(Ty); local 134 Types.push_back(STy->getElementType()); 138 StructType *STy = cast<StructType>(Ty); local 139 if (STy->isOpaque()) return true; 140 for (StructType::element_iterator I = STy->element_begin(), 141 E = STy->element_end(); I != E; ++I) { 490 if (StructType *STy = dyn_cast<StructType>(Ty)) { 491 NewGlobals.reserve(STy->getNumElements()); 492 const StructLayout &Layout = *DL.getStructLayout(STy); 493 for (unsigned i = 0, e = STy 1273 StructType *STy = cast<StructType>(MAT); local [all...] |
H A D | DeadArgumentElimination.cpp | 386 else if (StructType *STy = dyn_cast<StructType>(RetTy)) 387 return STy->getNumElements(); 401 if (StructType *STy = dyn_cast<StructType>(RetTy)) 402 return STy->getElementType(Idx); 830 if (StructType *STy = dyn_cast<StructType>(RetTy)) { 833 NRetTy = StructType::get(STy->getContext(), RetTypes, STy->isPacked());
|
/freebsd-11.0-release/contrib/llvm/tools/clang/include/clang/Sema/ |
H A D | Overload.h | 687 auto STy = Surrogate->getConversionType(); local 688 while (STy->isPointerType() || STy->isReferenceType()) 689 STy = STy->getPointeeType(); 690 return STy->getAs<FunctionProtoType>()->getNumParams();
|
/freebsd-11.0-release/contrib/llvm/lib/CodeGen/ |
H A D | Analysis.cpp | 47 if (StructType *STy = dyn_cast<StructType>(Ty)) { 48 for (StructType::element_iterator EB = STy->element_begin(), 50 EE = STy->element_end(); 91 if (StructType *STy = dyn_cast<StructType>(Ty)) { 92 const StructLayout *SL = DL.getStructLayout(STy); 93 for (StructType::element_iterator EB = STy->element_begin(), 95 EE = STy->element_end();
|
H A D | ShadowStackGCLowering.cpp | 222 StructType *STy = StructType::create(EltTys, "gc_map." + utostr(NumMeta)); local 224 Constant *FrameMap = ConstantStruct::get(STy, DescriptorElts);
|
/freebsd-11.0-release/contrib/llvm/lib/Linker/ |
H A D | IRMover.cpp | 65 void finishType(StructType *DTy, StructType *STy, ArrayRef<Type *> ETypes); 96 if (auto *STy = dyn_cast<StructType>(Ty)) 97 if (STy->hasName()) 98 STy->setName(""); 209 void TypeMapTy::finishType(StructType *DTy, StructType *STy, argument 211 DTy->setBody(ETypes, STy->isPacked()); 213 // Steal STy's name. 214 if (STy->hasName()) { 215 SmallString<16> TmpName = STy->getName(); 216 STy 273 auto *STy = cast<StructType>(Ty); local 303 auto *STy = cast<StructType>(Ty); local [all...] |
/freebsd-11.0-release/contrib/llvm/lib/Transforms/Scalar/ |
H A D | SCCP.cpp | 243 if (StructType *STy = dyn_cast<StructType>(F->getReturnType())) { 245 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 297 if (StructType *STy = dyn_cast<StructType>(V->getType())) 298 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 735 if (StructType *STy = dyn_cast<StructType>(ResultOp->getType())) 737 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) 793 StructType *STy = dyn_cast<StructType>(IVI.getType()); local 794 if (!STy) 806 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 1172 if (StructType *STy [all...] |
H A D | SROA.cpp | 709 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 711 const StructLayout *SL = DL.getStructLayout(STy); 1377 } else if (StructType *STy = dyn_cast<StructType>(ElementTy)) { 1378 if (STy->element_begin() == STy->element_end()) 1380 ElementTy = *STy->element_begin(); 1442 StructType *STy = dyn_cast<StructType>(Ty); 1443 if (!STy) 1446 const StructLayout *SL = DL.getStructLayout(STy); 1452 Type *ElementTy = STy [all...] |
H A D | NaryReassociate.cpp | 331 StructType *STy = cast<StructType>(*GTI); local 333 BaseOffset += DL->getStructLayout(STy)->getElementOffset(Field);
|
/freebsd-11.0-release/contrib/llvm/include/llvm/Transforms/Utils/ |
H A D | Local.h | 218 if (StructType *STy = dyn_cast<StructType>(*GTI)) { 223 Size = DL.getStructLayout(STy)->getElementOffset(OpValue);
|
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/CodeGen/ |
H A D | CGCall.cpp | 1023 if (llvm::StructType *STy = 1026 CGF.CGM.getDataLayout().getStructLayout(STy); 1028 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { 1207 llvm::StructType *STy = dyn_cast<llvm::StructType>(AI.getCoerceToType()); 1208 if (AI.isDirect() && AI.getCanBeFlattened() && STy) { 1209 IRArgs.NumberOfArgs = STy->getNumElements(); 2051 llvm::StructType *STy = dyn_cast<llvm::StructType>(ArgI.getCoerceToType()); 2052 if (ArgI.isDirect() && ArgI.getCanBeFlattened() && STy && 2053 STy->getNumElements() > 1) { 2054 auto SrcLayout = CGM.getDataLayout().getStructLayout(STy); [all...] |
H A D | CGExprConstant.cpp | 538 llvm::StructType *STy = local 543 if (ValSTy->isLayoutIdentical(STy)) 544 STy = ValSTy; 547 llvm::Constant *Result = llvm::ConstantStruct::get(STy, Elements); 672 llvm::StructType* STy = local 674 return llvm::ConstantStruct::get(STy, Elts); 1325 llvm::StructType *STy = llvm::StructType::get(Complex[0]->getType(), 1328 return llvm::ConstantStruct::get(STy, Complex); 1348 llvm::StructType *STy = llvm::StructType::get(Complex[0]->getType(), 1351 return llvm::ConstantStruct::get(STy, Comple [all...] |
/freebsd-11.0-release/contrib/llvm/include/llvm/Analysis/ |
H A D | TargetTransformInfoImpl.h | 444 StructType *STy = cast<StructType>(*GTI); local 448 BaseOffset += DL.getStructLayout(STy)->getElementOffset(Field);
|