reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/Analysis/ScalarEvolution.h
   68 class StructType;
include/llvm/IR/Constants.h
   48 class StructType;
include/llvm/IR/GVMaterializer.h
   26 class StructType;
include/llvm/IR/Module.h
   52 class StructType;
include/llvm/IR/TypeFinder.h
   24 class StructType;
include/llvm/Linker/IRMover.h
   21 class StructType;
include/llvm/Linker/Linker.h
   17 class StructType;
lib/AsmParser/LLParser.h
   41   class StructType;
tools/clang/include/clang/CodeGen/SwiftCallingConv.h
   25   class StructType;
tools/clang/lib/CodeGen/CGObjCRuntime.h
   29   class StructType;
tools/clang/lib/CodeGen/CGOpenMPRuntime.h
   33 class StructType;
tools/clang/lib/CodeGen/CGRecordLayout.h
   19   class StructType;
tools/clang/lib/CodeGen/CodeGenTypes.h
   27 class StructType;

References

include/llvm/ADT/DenseMapInfo.h
   39   static inline T* getEmptyKey() {
   41     Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
   45   static inline T* getTombstoneKey() {
   47     Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
   51   static unsigned getHashValue(const T *PtrVal) {
   56   static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
   56   static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
include/llvm/ADT/STLExtras.h
 1014       std::is_base_of<T, U>::value && are_base_of<T, Ts...>::value;
include/llvm/Analysis/ScalarEvolution.h
  597   const SCEV *getOffsetOfExpr(Type *IntTy, StructType *STy, unsigned FieldNo);
include/llvm/Analysis/TargetTransformInfoImpl.h
  761       if (StructType *STy = GTI.getStructTypeOrNull()) {
  906       if (StructType* StructTy = dyn_cast<StructType>(DstTy))
  906       if (StructType* StructTy = dyn_cast<StructType>(DstTy))
include/llvm/Analysis/Utils/Local.h
   53       if (StructType *STy = GTI.getStructTypeOrNull()) {
include/llvm/CodeGen/BasicTTIImpl.h
 1329       Type *OpTy = StructType::create({RetTy, CondTy});
 1349       Type *OpTy = StructType::create({RetTy, CondTy});
include/llvm/FuzzMutate/OpDescriptor.h
  171     if (isa<StructType>(V->getType()))
include/llvm/IR/Constants.h
  449   ConstantStruct(StructType *T, ArrayRef<Constant *> Val);
  456   static Constant *get(StructType *T, ArrayRef<Constant*> V);
  461   get(StructType *T, Csts *... Vs) {
  478   static StructType *getTypeForElements(ArrayRef<Constant*> V,
  481   static StructType *getTypeForElements(LLVMContext &Ctx,
  486   inline StructType *getType() const {
  487     return cast<StructType>(Value::getType());
  921   static Constant *getOffsetOf(StructType *STy, unsigned FieldNo);
include/llvm/IR/DataLayout.h
  561   const StructLayout *getStructLayout(StructType *Ty) const;
  619   StructLayout(StructType *ST, const DataLayout &DL);
  639                         getStructLayout(cast<StructType>(Ty))->getSizeInBits());
include/llvm/IR/DerivedTypes.h
  256   StructType(const StructType &) = delete;
  257   StructType &operator=(const StructType &) = delete;
  257   StructType &operator=(const StructType &) = delete;
  260   static StructType *create(LLVMContext &Context, StringRef Name);
  261   static StructType *create(LLVMContext &Context);
  263   static StructType *create(ArrayRef<Type *> Elements, StringRef Name,
  265   static StructType *create(ArrayRef<Type *> Elements);
  266   static StructType *create(LLVMContext &Context, ArrayRef<Type *> Elements,
  268   static StructType *create(LLVMContext &Context, ArrayRef<Type *> Elements);
  271                                  StructType *>::type
  279   static StructType *get(LLVMContext &Context, ArrayRef<Type*> Elements,
  283   static StructType *get(LLVMContext &Context, bool isPacked = false);
  289   static typename std::enable_if<are_base_of<Type, Tys...>::value,
  290                                  StructType *>::type
  291   get(Type *elt1, Tys *... elts) {
  295     return llvm::StructType::get(Ctx, StructFields);
  347   bool isLayoutIdentical(StructType *Other) const;
  363   return cast<StructType>(this)->getName();
  367   return cast<StructType>(this)->getNumElements();
  371   return cast<StructType>(this)->getElementType(N);
include/llvm/IR/GVMaterializer.h
   46   virtual std::vector<StructType *> getIdentifiedStructTypes() const = 0;
include/llvm/IR/GetElementPtrTypeIterator.h
   36     PointerUnion<StructType *, Type *> CurTy;
   71       return CurTy.get<StructType *>()->getTypeAtIndex(getOperand());
   82         CurTy = dyn_cast<StructType>(Ty);
  106     bool isStruct() const { return CurTy.is<StructType *>(); }
  109     StructType *getStructType() const { return CurTy.get<StructType *>(); }
  109     StructType *getStructType() const { return CurTy.get<StructType *>(); }
  111     StructType *getStructTypeOrNull() const {
  112       return CurTy.dyn_cast<StructType *>();
include/llvm/IR/Module.h
  326   StructType *getTypeByName(StringRef Name) const;
  328   std::vector<StructType *> getIdentifiedStructTypes() const;
include/llvm/IR/TypeFinder.h
   37   std::vector<StructType*> StructTypes;
   46   using iterator = std::vector<StructType*>::iterator;
   47   using const_iterator = std::vector<StructType*>::const_iterator;
   59   StructType *&operator[](unsigned Idx) { return StructTypes[Idx]; }
include/llvm/Linker/IRMover.h
   31       KeyTy(const StructType *ST);
   35     static StructType *getEmptyKey();
   36     static StructType *getTombstoneKey();
   38     static unsigned getHashValue(const StructType *ST);
   39     static bool isEqual(const KeyTy &LHS, const StructType *RHS);
   40     static bool isEqual(const StructType *LHS, const StructType *RHS);
   40     static bool isEqual(const StructType *LHS, const StructType *RHS);
   49     DenseSet<StructType *> OpaqueStructTypes;
   52     DenseSet<StructType *, StructTypeKeyInfo> NonOpaqueStructTypes;
   55     void addNonOpaque(StructType *Ty);
   56     void switchToNonOpaque(StructType *Ty);
   57     void addOpaque(StructType *Ty);
   58     StructType *findNonOpaque(ArrayRef<Type *> ETypes, bool IsPacked);
   59     bool hasType(StructType *Ty);
include/llvm/Support/Casting.h
   58     return To::classof(&Val);
   66   static inline bool doit(const From &) { return true; }
  104   static inline bool doit(const From *Val) {
  106     return isa_impl<To, From>::doit(*Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  172   using ret_type = To *;       // Pointer arg case, return Ty*
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  265   return cast_convert_val<X, Y*,
  266                           typename simplify_type<Y*>::SimpleType>::doit(Val);
  305 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
  309   return cast<X>(Val);
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
include/llvm/Support/PointerLikeTypeTraits.h
   56   static inline void *getAsVoidPointer(T *P) { return P; }
   57   static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); }
   59   enum { NumLowBitsAvailable = detail::ConstantLog2<alignof(T)>::value };
include/llvm/Transforms/Utils/SanitizerStats.h
   46   StructType *EmptyModuleStatsTy;
   50   StructType *makeModuleStatsTy();
lib/Analysis/BasicAliasAnalysis.cpp
  543       if (StructType *STy = GTI.getStructTypeOrNull()) {
 1145   StructType *LastIndexedStruct = dyn_cast<StructType>(Ty);
 1145   StructType *LastIndexedStruct = dyn_cast<StructType>(Ty);
lib/Analysis/ConstantFolding.cpp
  774          !isa<StructType>(GetElementPtrInst::getIndexedType(
  958       auto *STy = cast<StructType>(Ty);
  958       auto *STy = cast<StructType>(Ty);
 2142             cast<StructType>(Ty),
 2181       return ConstantStruct::get(cast<StructType>(Ty), Ops);
lib/Analysis/InlineCost.cpp
  404     if (StructType *STy = GTI.getStructTypeOrNull()) {
lib/Analysis/InstructionSimplify.cpp
 5021           cast<StructType>(ReturnType),
lib/Analysis/MemoryBuiltins.cpp
  338   if (StructType *ST = dyn_cast<StructType>(T))
  338   if (StructType *ST = dyn_cast<StructType>(T))
lib/Analysis/ModuleSummaryAnalysis.cpp
  503     StructType *STy = dyn_cast<StructType>(C->getType());
  503     StructType *STy = dyn_cast<StructType>(C->getType());
  507     for (StructType::element_iterator EB = STy->element_begin(), EI = EB,
lib/Analysis/ScalarEvolution.cpp
  512           if (StructType *STy = dyn_cast<StructType>(Ty))
  512           if (StructType *STy = dyn_cast<StructType>(Ty))
 3506     if (StructType *STy = dyn_cast<StructType>(CurTy)) {
 3506     if (StructType *STy = dyn_cast<StructType>(CurTy)) {
 3727                                              StructType *STy,
lib/Analysis/ScalarEvolutionExpander.cpp
  464     while (StructType *STy = dyn_cast<StructType>(ElTy)) {
  464     while (StructType *STy = dyn_cast<StructType>(ElTy)) {
lib/Analysis/ValueTracking.cpp
 1311       if (StructType *STy = GTI.getStructTypeOrNull()) {
 1865     if (StructType *STy = GTI.getStructTypeOrNull()) {
 3296   StructType *STy = dyn_cast<StructType>(IndexedType);
 3296   StructType *STy = dyn_cast<StructType>(IndexedType);
 5731     if (StructType *STy = GTI.getStructTypeOrNull()) {
lib/AsmParser/LLParser.cpp
  442   if (!isa<StructType>(Result)) {
  468   if (!isa<StructType>(Result)) {
 2354       Entry.first = StructType::create(Context, Lex.getStrVal());
 2369       Entry.first = StructType::create(Context);
 2678   Result = StructType::get(Context, Elts, Packed);
 2698       Entry.first = StructType::create(Context, Name);
 2724     Entry.first = StructType::create(Context, Name);
 2726   StructType *STy = cast<StructType>(Entry.first);
 2726   StructType *STy = cast<StructType>(Entry.first);
 2757   if (!StructType::isValidElementType(Ty))
 2764     if (!StructType::isValidElementType(Ty))
 5225     if (StructType *ST = dyn_cast<StructType>(Ty)) {
 5225     if (StructType *ST = dyn_cast<StructType>(Ty)) {
lib/Bitcode/Reader/BitcodeReader.cpp
  577   std::vector<StructType *> getIdentifiedStructTypes() const override;
  592   std::vector<StructType *> IdentifiedStructTypes;
  593   StructType *createIdentifiedStructType(LLVMContext &Context, StringRef Name);
  594   StructType *createIdentifiedStructType(LLVMContext &Context);
 1198 StructType *BitcodeReader::createIdentifiedStructType(LLVMContext &Context,
 1200   auto *Ret = StructType::create(Context, Name);
 1200   auto *Ret = StructType::create(Context, Name);
 1205 StructType *BitcodeReader::createIdentifiedStructType(LLVMContext &Context) {
 1206   auto *Ret = StructType::create(Context);
 1206   auto *Ret = StructType::create(Context);
 1834       ResultTy = StructType::get(Context, EltTys, Record[0]);
 1850       StructType *Res = cast_or_null<StructType>(TypeList[NumRecords]);
 1850       StructType *Res = cast_or_null<StructType>(TypeList[NumRecords]);
 1879       StructType *Res = cast_or_null<StructType>(TypeList[NumRecords]);
 1879       StructType *Res = cast_or_null<StructType>(TypeList[NumRecords]);
 1904       if (!ResultTy || !StructType::isValidElementType(ResultTy))
 2436       if (StructType *STy = dyn_cast<StructType>(CurTy)) {
 2436       if (StructType *STy = dyn_cast<StructType>(CurTy)) {
 4933       FullTy = StructType::get(Context, {FullTy, Type::getInt1Ty(Context)});
 4942         FullTy = cast<StructType>(FullTy)->getElementType(0);
 5344 std::vector<StructType *> BitcodeReader::getIdentifiedStructTypes() const {
lib/Bitcode/Writer/BitcodeWriter.cpp
  913       StructType *ST = cast<StructType>(T);
  913       StructType *ST = cast<StructType>(T);
  917       for (StructType::element_iterator I = ST->element_begin(),
lib/Bitcode/Writer/ValueEnumerator.cpp
  864   if (StructType *STy = dyn_cast<StructType>(Ty))
  864   if (StructType *STy = dyn_cast<StructType>(Ty))
lib/CodeGen/Analysis.cpp
   44   if (StructType *STy = dyn_cast<StructType>(Ty)) {
   44   if (StructType *STy = dyn_cast<StructType>(Ty)) {
   45     for (StructType::element_iterator EB = STy->element_begin(),
   89   if (StructType *STy = dyn_cast<StructType>(Ty)) {
   89   if (StructType *STy = dyn_cast<StructType>(Ty)) {
   91     for (StructType::element_iterator EB = STy->element_begin(),
  132   if (StructType *STy = dyn_cast<StructType>(&Ty)) {
  132   if (StructType *STy = dyn_cast<StructType>(&Ty)) {
  402   return Idx < cast<StructType>(T)->getNumElements();
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 1995   StructType *ETy = dyn_cast<StructType>(InitList->getType()->getElementType());
 1995   StructType *ETy = dyn_cast<StructType>(InitList->getType()->getElementType());
lib/CodeGen/CodeGenPrepare.cpp
 4135       if (StructType *STy = GTI.getStructTypeOrNull()) {
lib/CodeGen/GlobalISel/IRTranslator.cpp
 1066     if (StructType *StTy = GTI.getStructTypeOrNull()) {
 1759   for (Type *Ty : cast<StructType>(LP.getType())->elements())
lib/CodeGen/GlobalMerge.cpp
  501     StructType *MergedTy = StructType::get(M.getContext(), Tys, true);
  501     StructType *MergedTy = StructType::get(M.getContext(), Tys, true);
lib/CodeGen/LowerEmuTLS.cpp
  119   StructType *EmuTlsVarType = StructType::create(ElementTypeArray);
  119   StructType *EmuTlsVarType = StructType::create(ElementTypeArray);
lib/CodeGen/MachineFunction.cpp
 1027   if (isa<StructType>(A->getType()) || isa<ArrayType>(A->getType()) ||
 1028       isa<StructType>(B->getType()) || isa<ArrayType>(B->getType()))
lib/CodeGen/SelectionDAG/FastISel.cpp
  690     if (StructType *StTy = GTI.getStructTypeOrNull()) {
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 3859     if (StructType *StTy = GTI.getStructTypeOrNull()) {
 7774     if (StructType *STy = dyn_cast<StructType>(OpTy))
 7774     if (StructType *STy = dyn_cast<StructType>(OpTy))
 8090       if (StructType *STy = dyn_cast<StructType>(CS.getType())) {
 8090       if (StructType *STy = dyn_cast<StructType>(CS.getType())) {
 8417   if (StructType *StructResult = dyn_cast<StructType>(CSResultType))
 8417   if (StructType *StructResult = dyn_cast<StructType>(CSResultType))
 9146             isa<StructType>(FinalType)) {
 9647             isa<StructType>(Arg.getType())) {
lib/CodeGen/SelectionDAG/TargetLowering.cpp
 4215       if (StructType *STy = dyn_cast<StructType>(CS.getType())) {
 4215       if (StructType *STy = dyn_cast<StructType>(CS.getType())) {
 4242       if (StructType *STy = dyn_cast<StructType>(OpTy))
 4242       if (StructType *STy = dyn_cast<StructType>(OpTy))
lib/CodeGen/ShadowStackGCLowering.cpp
   56   StructType *StackEntryTy = nullptr;
   57   StructType *FrameMapTy = nullptr;
  128   StructType *STy = StructType::create(EltTys, "gc_map." + utostr(NumMeta));
  128   StructType *STy = StructType::create(EltTys, "gc_map." + utostr(NumMeta));
  162   return StructType::create(EltTys, ("gc_stackentry." + F.getName()).str());
  188   FrameMapTy = StructType::create(EltTys, "gc_map");
  197   StackEntryTy = StructType::create(M.getContext(), "gc_stackentry");
lib/CodeGen/SjLjEHPrepare.cpp
   89   FunctionContextTy = StructType::get(VoidPtrTy,         // __prev
lib/CodeGen/StackProtector.cpp
  139   const StructType *ST = dyn_cast<StructType>(Ty);
  139   const StructType *ST = dyn_cast<StructType>(Ty);
  144   for (StructType::element_iterator I = ST->element_begin(),
lib/CodeGen/WasmEHPrepare.cpp
  144   LPadContextTy = StructType::get(IRB.getInt32Ty(),   // lpad_index
lib/ExecutionEngine/ExecutionEngine.cpp
  611       if(StructType *STy = dyn_cast<StructType>(C->getType())) {
  611       if(StructType *STy = dyn_cast<StructType>(C->getType())) {
 1161         getDataLayout().getStructLayout(cast<StructType>(CPS->getType()));
lib/ExecutionEngine/Interpreter/Execution.cpp
 1055     if (StructType *STy = I.getStructTypeOrNull()) {
lib/ExecutionEngine/Orc/Speculation.cpp
   71     auto SpeculatorVTy = StructType::create(MContext, "Class.Speculator");
lib/FuzzMutate/Operations.cpp
  184   if (isa<StructType>(T))
  226     auto *STy = cast<StructType>(Cur[0]->getType());
  226     auto *STy = cast<StructType>(Cur[0]->getType());
  237     auto *STy = cast<StructType>(Cur[0]->getType());
  237     auto *STy = cast<StructType>(Cur[0]->getType());
lib/IR/AsmWriter.cpp
  475   std::vector<StructType *> &getNumberedTypes();
  481   void printStructBody(StructType *Ty, raw_ostream &OS);
  492   DenseMap<StructType *, unsigned> Type2Number;
  494   std::vector<StructType *> NumberedTypes;
  504 std::vector<StructType *> &TypePrinting::getNumberedTypes() {
  538   std::vector<StructType*>::iterator NextToUse = NamedTypes.begin(), I, E;
  540     StructType *STy = *I;
  592     StructType *STy = cast<StructType>(Ty);
  592     StructType *STy = cast<StructType>(Ty);
  637 void TypePrinting::printStructBody(StructType *STy, raw_ostream &OS) {
  649     StructType::element_iterator I = STy->element_begin();
  652     for (StructType::element_iterator E = STy->element_end(); I != E; ++I) {
 4262   if (StructType *STy = dyn_cast<StructType>(const_cast<Type*>(this)))
 4262   if (StructType *STy = dyn_cast<StructType>(const_cast<Type*>(this)))
lib/IR/AutoUpgrade.cpp
  845   StructType *STy = dyn_cast<StructType>(ATy->getElementType());
  845   StructType *STy = dyn_cast<StructType>(ATy->getElementType());
  851   auto EltTy = StructType::get(STy->getElementType(0), STy->getElementType(1),
lib/IR/ConstantFold.cpp
  118           if (StructType *STy = dyn_cast<StructType>(ElTy)) {
  118           if (StructType *STy = dyn_cast<StructType>(ElTy)) {
  360   if (StructType *STy = dyn_cast<StructType>(Ty))
  360   if (StructType *STy = dyn_cast<StructType>(Ty))
  420   if (StructType *STy = dyn_cast<StructType>(Ty)) {
  420   if (StructType *STy = dyn_cast<StructType>(Ty)) {
  482   if (StructType *STy = dyn_cast<StructType>(Ty))
  482   if (StructType *STy = dyn_cast<StructType>(Ty))
  662           if (StructType *STy = dyn_cast<StructType>(Ty))
  662           if (StructType *STy = dyn_cast<StructType>(Ty))
  918   if (StructType *ST = dyn_cast<StructType>(Agg->getType()))
  918   if (StructType *ST = dyn_cast<StructType>(Agg->getType()))
  934   if (StructType *ST = dyn_cast<StructType>(Agg->getType()))
  934   if (StructType *ST = dyn_cast<StructType>(Agg->getType()))
 1381   if (StructType *STy = dyn_cast<StructType>(Ty)) {
 1381   if (StructType *STy = dyn_cast<StructType>(Ty)) {
 2353     if (isa<StructType>(Ty)) {
 2388     if (isa<StructType>(Prev)) {
lib/IR/Constants.cpp
 1000   if (auto *ST = dyn_cast<StructType>(T))
 1000   if (auto *ST = dyn_cast<StructType>(T))
 1049 StructType *ConstantStruct::getTypeForElements(LLVMContext &Context,
 1057   return StructType::get(Context, EltTypes, Packed);
 1061 StructType *ConstantStruct::getTypeForElements(ArrayRef<Constant*> V,
 1068 ConstantStruct::ConstantStruct(StructType *T, ArrayRef<Constant *> V)
 1075 Constant *ConstantStruct::get(StructType *ST, ArrayRef<Constant*> V) {
 1940   Type *AligningTy = StructType::get(Type::getInt1Ty(Ty->getContext()), Ty);
 1950 Constant *ConstantExpr::getOffsetOf(StructType* STy, unsigned FieldNo) {
lib/IR/ConstantsContext.h
  365   using TypeClass = StructType;
lib/IR/Core.cpp
  673   return wrap(StructType::get(*unwrap(C), Tys, Packed != 0));
  684   return wrap(StructType::create(*unwrap(C), Name));
  689   StructType *Type = unwrap<StructType>(Ty);
  689   StructType *Type = unwrap<StructType>(Ty);
  698   unwrap<StructType>(StructTy)->setBody(Tys, Packed != 0);
  702   return unwrap<StructType>(StructTy)->getNumElements();
  706   StructType *Ty = unwrap<StructType>(StructTy);
  706   StructType *Ty = unwrap<StructType>(StructTy);
  707   for (StructType::element_iterator I = Ty->element_begin(),
  713   StructType *Ty = unwrap<StructType>(StructTy);
  713   StructType *Ty = unwrap<StructType>(StructTy);
  718   return unwrap<StructType>(StructTy)->isPacked();
  722   return unwrap<StructType>(StructTy)->isOpaque();
  726   return unwrap<StructType>(StructTy)->isLiteral();
 1421   StructType *Ty = cast<StructType>(unwrap(StructTy));
 1421   StructType *Ty = cast<StructType>(unwrap(StructTy));
lib/IR/DataLayout.cpp
   46 StructLayout::StructLayout(StructType *ST, const DataLayout &DL) {
  581   using LayoutInfoTy = DenseMap<StructType*, StructLayout*>;
  594   StructLayout *&operator[](StructType *STy) {
  613 const StructLayout *DataLayout::getStructLayout(StructType *Ty) const {
  720     if (cast<StructType>(Ty)->isPacked() && abi_or_pref)
  724     const StructLayout *Layout = getStructLayout(cast<StructType>(Ty));
  815     if (StructType *STy = GTI.getStructTypeOrNull()) {
lib/IR/Function.cpp
  596   } else if (StructType *STyp = dyn_cast<StructType>(Ty)) {
  596   } else if (StructType *STyp = dyn_cast<StructType>(Ty)) {
  975     return StructType::get(Context, Elts);
 1160       StructType *ST = dyn_cast<StructType>(Ty);
 1160       StructType *ST = dyn_cast<StructType>(Ty);
lib/IR/InlineAsm.cpp
  293     StructType *STy = dyn_cast<StructType>(Ty->getReturnType());
  293     StructType *STy = dyn_cast<StructType>(Ty->getReturnType());
lib/IR/Instructions.cpp
 1474           StructType::get(Cmp->getType(), Type::getInt1Ty(Cmp->getContext())),
 1486           StructType::get(Cmp->getType(), Type::getInt1Ty(Cmp->getContext())),
 2174     } else if (StructType *ST = dyn_cast<StructType>(Agg)) {
 2174     } else if (StructType *ST = dyn_cast<StructType>(Agg)) {
lib/IR/LLVMContextImpl.h
  105     KeyTy(const StructType *ST)
  120   static inline StructType* getEmptyKey() {
  121     return DenseMapInfo<StructType*>::getEmptyKey();
  124   static inline StructType* getTombstoneKey() {
  125     return DenseMapInfo<StructType*>::getTombstoneKey();
  134   static unsigned getHashValue(const StructType *ST) {
  138   static bool isEqual(const KeyTy& LHS, const StructType *RHS) {
  144   static bool isEqual(const StructType *LHS, const StructType *RHS) {
  144   static bool isEqual(const StructType *LHS, const StructType *RHS) {
 1331   using StructTypeSet = DenseSet<StructType *, AnonStructTypeKeyInfo>;
 1333   StringMap<StructType*> NamedStructTypes;
lib/IR/Module.cpp
  418 std::vector<StructType *> Module::getIdentifiedStructTypes() const {
  425   std::vector<StructType *> Ret;
lib/IR/Operator.cpp
   49     if (StructType *STy = GTI.getStructTypeOrNull()) {
lib/IR/SafepointIRVerifier.cpp
  269   if (StructType *ST = dyn_cast<StructType>(Ty))
  269   if (StructType *ST = dyn_cast<StructType>(Ty))
lib/IR/Type.cpp
  104   if (auto *STy = dyn_cast<StructType>(this)) {
  158   return cast<StructType>(this)->isSized(Visited);
  346 StructType *StructType::get(LLVMContext &Context, ArrayRef<Type*> ETypes,
  351   StructType *ST;
  361     ST = new (Context.pImpl->Alloc) StructType(Context);
  393   StringMap<StructType *> &SymbolTable = getContext().pImpl->NamedStructTypes;
  395   using EntryTy = StringMap<StructType *>::MapEntryTy;
  441 StructType *StructType::create(LLVMContext &Context, StringRef Name) {
  442   StructType *ST = new (Context.pImpl->Alloc) StructType(Context);
  442   StructType *ST = new (Context.pImpl->Alloc) StructType(Context);
  448 StructType *StructType::get(LLVMContext &Context, bool isPacked) {
  452 StructType *StructType::create(LLVMContext &Context, ArrayRef<Type*> Elements,
  454   StructType *ST = create(Context, Name);
  459 StructType *StructType::create(LLVMContext &Context, ArrayRef<Type*> Elements) {
  463 StructType *StructType::create(LLVMContext &Context) {
  467 StructType *StructType::create(ArrayRef<Type*> Elements, StringRef Name,
  474 StructType *StructType::create(ArrayRef<Type*> Elements) {
  519 bool StructType::isLayoutIdentical(StructType *Other) const {
  528 StructType *Module::getTypeByName(StringRef Name) const {
  537   if (auto *STy = dyn_cast<StructType>(this)) {
  548   if (auto *STy = dyn_cast<StructType>(this)) {
  557   if (auto *STy = dyn_cast<StructType>(this)) {
  574   if (auto *STy = dyn_cast<StructType>(this))
lib/IR/TypeFinder.cpp
  103     if (StructType *STy = dyn_cast<StructType>(Ty))
  103     if (StructType *STy = dyn_cast<StructType>(Ty))
lib/IR/Verifier.cpp
  644       StructType *STy = dyn_cast<StructType>(ATy->getElementType());
  644       StructType *STy = dyn_cast<StructType>(ATy->getElementType());
lib/Linker/IRMover.cpp
   39   SmallVector<StructType *, 16> SpeculativeDstOpaqueTypes;
   43   SmallVector<StructType *, 16> SrcDefinitionsToResolve;
   47   SmallPtrSet<StructType *, 16> DstResolvedOpaqueTypes;
   65   Type *get(Type *SrcTy, SmallPtrSet<StructType *, 8> &Visited);
   67   void finishType(StructType *DTy, StructType *STy, ArrayRef<Type *> ETypes);
   67   void finishType(StructType *DTy, StructType *STy, ArrayRef<Type *> ETypes);
   94     for (StructType *Ty : SpeculativeDstOpaqueTypes)
  104       if (auto *STy = dyn_cast<StructType>(Ty))
  104       if (auto *STy = dyn_cast<StructType>(Ty))
  134   if (StructType *SSTy = dyn_cast<StructType>(SrcTy)) {
  134   if (StructType *SSTy = dyn_cast<StructType>(SrcTy)) {
  146     if (cast<StructType>(DstTy)->isOpaque()) {
  148       if (!DstResolvedOpaqueTypes.insert(cast<StructType>(DstTy)).second)
  152       SpeculativeDstOpaqueTypes.push_back(cast<StructType>(DstTy));
  171   } else if (StructType *DSTy = dyn_cast<StructType>(DstTy)) {
  171   } else if (StructType *DSTy = dyn_cast<StructType>(DstTy)) {
  172     StructType *SSTy = cast<StructType>(SrcTy);
  172     StructType *SSTy = cast<StructType>(SrcTy);
  198   for (StructType *SrcSTy : SrcDefinitionsToResolve) {
  199     StructType *DstSTy = cast<StructType>(MappedTypes[SrcSTy]);
  199     StructType *DstSTy = cast<StructType>(MappedTypes[SrcSTy]);
  214 void TypeMapTy::finishType(StructType *DTy, StructType *STy,
  214 void TypeMapTy::finishType(StructType *DTy, StructType *STy,
  229   SmallPtrSet<StructType *, 8> Visited;
  233 Type *TypeMapTy::get(Type *Ty, SmallPtrSet<StructType *, 8> &Visited) {
  240   bool IsUniqued = !isa<StructType>(Ty) || cast<StructType>(Ty)->isLiteral();
  240   bool IsUniqued = !isa<StructType>(Ty) || cast<StructType>(Ty)->isLiteral();
  243     StructType *STy = cast<StructType>(Ty);
  243     StructType *STy = cast<StructType>(Ty);
  260       StructType *DTy = StructType::create(Ty->getContext());
  260       StructType *DTy = StructType::create(Ty->getContext());
  285     if (auto *DTy = dyn_cast<StructType>(*Entry)) {
  285     if (auto *DTy = dyn_cast<StructType>(*Entry)) {
  287         auto *STy = cast<StructType>(Ty);
  287         auto *STy = cast<StructType>(Ty);
  317     auto *STy = cast<StructType>(Ty);
  317     auto *STy = cast<StructType>(Ty);
  320       return *Entry = StructType::get(Ty->getContext(), ElementTypes, IsPacked);
  328     if (StructType *OldT =
  339     StructType *DTy = StructType::create(Ty->getContext());
  339     StructType *DTy = StructType::create(Ty->getContext());
  782   std::vector<StructType *> Types = SrcM->getIdentifiedStructTypes();
  783   for (StructType *ST : Types) {
  800     StructType *DST = DstM.getTypeByName(STTypePrefix);
  853     if (cast<StructType>(EltTy)->getNumElements() == 3)
  861     auto &ST = *cast<StructType>(EltTy);
  861     auto &ST = *cast<StructType>(EltTy);
  863     EltTy = StructType::get(SrcGV->getContext(), Tys, false);
 1463 IRMover::StructTypeKeyInfo::KeyTy::KeyTy(const StructType *ST)
 1474 StructType *IRMover::StructTypeKeyInfo::getEmptyKey() {
 1475   return DenseMapInfo<StructType *>::getEmptyKey();
 1478 StructType *IRMover::StructTypeKeyInfo::getTombstoneKey() {
 1479   return DenseMapInfo<StructType *>::getTombstoneKey();
 1487 unsigned IRMover::StructTypeKeyInfo::getHashValue(const StructType *ST) {
 1492                                          const StructType *RHS) {
 1498 bool IRMover::StructTypeKeyInfo::isEqual(const StructType *LHS,
 1499                                          const StructType *RHS) {
 1505 void IRMover::IdentifiedStructTypeSet::addNonOpaque(StructType *Ty) {
 1510 void IRMover::IdentifiedStructTypeSet::switchToNonOpaque(StructType *Ty) {
 1518 void IRMover::IdentifiedStructTypeSet::addOpaque(StructType *Ty) {
 1523 StructType *
 1531 bool IRMover::IdentifiedStructTypeSet::hasType(StructType *Ty) {
 1541   for (StructType *Ty : StructTypes) {
lib/Target/AArch64/AArch64FastISel.cpp
  631       if (StructType *STy = GTI.getStructTypeOrNull()) {
 3395   cast<StructType>(Callee->getReturnType())->getTypeAtIndex(0U);
 3685     auto *Ty = cast<StructType>(Callee->getReturnType());
 3685     auto *Ty = cast<StructType>(Callee->getReturnType());
 5026     if (auto *StTy = GTI.getStructTypeOrNull()) {
 5086   auto *RetPairTy = cast<StructType>(I->getType());
 5086   auto *RetPairTy = cast<StructType>(I->getType());
lib/Target/AArch64/AArch64ISelLowering.cpp
 2589   StructType *RetTy = StructType::get(ArgTy, ArgTy);
 2589   StructType *RetTy = StructType::get(ArgTy, ArgTy);
lib/Target/AArch64/AArch64StackTagging.cpp
  480   Type *TypeWithPadding = StructType::get(AllocatedType, PaddingType);
lib/Target/AArch64/AArch64TargetTransformInfo.cpp
  796     StructType *ST = dyn_cast<StructType>(ExpectedType);
  796     StructType *ST = dyn_cast<StructType>(ExpectedType);
lib/Target/AMDGPU/AMDGPULibFunc.cpp
  896     T = StructType::create(C,"ocl_image")->getPointerTo(); break;
  898     T = StructType::create(C,"ocl_sampler")->getPointerTo(); break;
  900     T = StructType::create(C,"ocl_event")->getPointerTo(); break;
lib/Target/AMDGPU/AMDGPURewriteOutArguments.cpp
  355   StructType *NewRetTy = StructType::create(Ctx, ReturnTypes, F.getName());
  355   StructType *NewRetTy = StructType::create(Ctx, ReturnTypes, F.getName());
  402         if (StructType *CT = dyn_cast<StructType>(EltTy)) {
  402         if (StructType *CT = dyn_cast<StructType>(EltTy)) {
lib/Target/AMDGPU/SIAnnotateControlFlow.cpp
  144   ReturnStruct = StructType::get(Boolean, IntMask);
lib/Target/ARM/ARMCallLowering.cpp
   63     auto StructT = cast<StructType>(T);
lib/Target/ARM/ARMFastISel.cpp
  763         if (StructType *STy = GTI.getStructTypeOrNull()) {
lib/Target/ARM/ARMISelLowering.cpp
 8740   Type *RetTy = StructType::get(ArgTy, ArgTy);
16001   Type *RetTy = StructType::get(Ty, Ty);
16033   Type *RetTy = StructType::get(*DAG.getContext(), ret);
16996   if (auto *ST = dyn_cast<StructType>(Ty)) {
16996   if (auto *ST = dyn_cast<StructType>(Ty)) {
lib/Target/ARM/ARMLegalizerInfo.cpp
  386     StructType *RetTy = StructType::get(Ctx, {ArgTy, ArgTy}, /* Packed */ true);
  386     StructType *RetTy = StructType::get(Ctx, {ArgTy, ArgTy}, /* Packed */ true);
lib/Target/AVR/AVRISelLowering.cpp
  383   Type *RetTy = (Type *)StructType::get(Ty, Ty);
lib/Target/BPF/BPFISelDAGToDAG.cpp
  358           DL.getStructLayout(cast<StructType>(CS->getType()))->getSizeInBytes();
lib/Target/Hexagon/HexagonCommonGEP.cpp
  215     Type *NextTy = cast<StructType>(Ty)->getElementType(i);
  258       StructType *STy = cast<StructType>(GN.PTy);
  258       StructType *STy = cast<StructType>(GN.PTy);
lib/Target/Hexagon/HexagonTargetObjectFile.cpp
  251   if (StructType *ST = dyn_cast<StructType>(GType)) {
  251   if (StructType *ST = dyn_cast<StructType>(GType)) {
  299     const StructType *STy = cast<const StructType>(Ty);
  299     const StructType *STy = cast<const StructType>(Ty);
lib/Target/Mips/Mips16HardFloat.cpp
   77     StructType *ST = cast<StructType>(T);
   77     StructType *ST = cast<StructType>(T);
lib/Target/Mips/Mips16ISelLowering.cpp
  385   } else if (StructType *SRetTy = dyn_cast<StructType>(RetTy)) {
  385   } else if (StructType *SRetTy = dyn_cast<StructType>(RetTy)) {
lib/Target/Mips/MipsFastISel.cpp
  495       if (StructType *STy = GTI.getStructTypeOrNull()) {
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
 1384   auto *STy = dyn_cast<StructType>(Ty);
 1384   auto *STy = dyn_cast<StructType>(Ty);
 1949       StructType *ST = cast<StructType>(CPV->getType());
 1949       StructType *ST = cast<StructType>(CPV->getType());
lib/Target/NVPTX/NVPTXISelLowering.cpp
  183   if (StructType *STy = dyn_cast<StructType>(Ty)) {
  183   if (StructType *STy = dyn_cast<StructType>(Ty)) {
 2454   auto *STy = dyn_cast<StructType>(PTy->getElementType());
 2454   auto *STy = dyn_cast<StructType>(PTy->getElementType());
 2553       if (StructType *STy = dyn_cast<StructType>(Ty))
 2553       if (StructType *STy = dyn_cast<StructType>(Ty))
lib/Target/PowerPC/PPCFastISel.cpp
  353         if (StructType *STy = GTI.getStructTypeOrNull()) {
lib/Target/PowerPC/PPCISelLowering.cpp
 1260   } else if (StructType *STy = dyn_cast<StructType>(Ty)) {
 1260   } else if (StructType *STy = dyn_cast<StructType>(Ty)) {
lib/Target/Target.cpp
  132   StructType *STy = unwrap<StructType>(StructTy);
  132   StructType *STy = unwrap<StructType>(StructTy);
  138   StructType *STy = unwrap<StructType>(StructTy);
  138   StructType *STy = unwrap<StructType>(StructTy);
lib/Target/WebAssembly/WebAssemblyFastISel.cpp
  273       if (StructType *STy = GTI.getStructTypeOrNull()) {
lib/Target/WebAssembly/WebAssemblyLowerGlobalDtors.cpp
   72   auto *ETy = dyn_cast<StructType>(InitList->getType()->getElementType());
   72   auto *ETy = dyn_cast<StructType>(InitList->getType()->getElementType());
lib/Target/X86/X86FastISel.cpp
  250     cast<StructType>(Callee->getReturnType())->getTypeAtIndex(0U);
  911       if (StructType *STy = GTI.getStructTypeOrNull()) {
 2867     auto *Ty = cast<StructType>(Callee->getReturnType());
 2867     auto *Ty = cast<StructType>(Callee->getReturnType());
lib/Target/X86/X86ISelLowering.cpp
 2039   } else if (StructType *STy = dyn_cast<StructType>(Ty)) {
 2039   } else if (StructType *STy = dyn_cast<StructType>(Ty)) {
27310   Type *RetTy = isF64 ? (Type *)StructType::get(ArgTy, ArgTy)
lib/Target/X86/X86WinEHState.cpp
   84   StructType *EHLinkRegistrationTy = nullptr;
   85   StructType *CXXEHRegistrationTy = nullptr;
   86   StructType *SEHRegistrationTy = nullptr;
  217   EHLinkRegistrationTy = StructType::create(Context, "EHRegistrationNode");
  242       StructType::create(FieldTys, "CXXExceptionRegistration");
  265   SEHRegistrationTy = StructType::create(FieldTys, "SEHExceptionRegistration");
lib/Transforms/Coroutines/CoroCleanup.cpp
   45   auto *FrameTy = StructType::get(
   45   auto *FrameTy = StructType::get(
lib/Transforms/Coroutines/CoroEarly.cpp
   70   auto *SampleStruct =
   71       StructType::get(Context, {AnyResumeFnPtrTy, AnyResumeFnPtrTy, Int8Ty});
  114     StructType *FrameTy = StructType::create(C, "NoopCoro.Frame");
  114     StructType *FrameTy = StructType::create(C, "NoopCoro.Frame");
lib/Transforms/Coroutines/CoroFrame.cpp
  395 static StructType *buildFrameType(Function &F, coro::Shape &Shape,
  402   StructType *FrameTy = StructType::create(C, Name);
  402   StructType *FrameTy = StructType::create(C, Name);
  590   StructType *FrameTy = Shape.FrameTy;
lib/Transforms/Coroutines/CoroInternal.h
  108   StructType *FrameTy;
  177     if (auto STy = dyn_cast<StructType>(FTy->getReturnType())) {
lib/Transforms/Coroutines/CoroSplit.cpp
  200     auto RetStructTy = dyn_cast<StructType>(RetTy);
  282   auto *FrameTy = Shape.FrameTy;
  429   if (!isa<StructType>(NewS->getType())) {
lib/Transforms/Coroutines/Coroutines.cpp
  440       } else if (auto SResultStructTy = dyn_cast<StructType>(SResultTy)) {
  565     } else if (auto SRetTy = dyn_cast<StructType>(FT->getReturnType())) {
lib/Transforms/IPO/ArgumentPromotion.cpp
  144       StructType *STy = cast<StructType>(AgTy);
  144       StructType *STy = cast<StructType>(AgTy);
  261         StructType *STy = cast<StructType>(AgTy);
  261         StructType *STy = cast<StructType>(AgTy);
  392       StructType *STy = cast<StructType>(AgTy);
  392       StructType *STy = cast<StructType>(AgTy);
  795   StructType *StructTy = cast<StructType>(type);
  795   StructType *StructTy = cast<StructType>(type);
  957       if (StructType *STy = dyn_cast<StructType>(AgTy)) {
  957       if (StructType *STy = dyn_cast<StructType>(AgTy)) {
  989       if (StructType *STy = dyn_cast<StructType>(AgTy)) {
  989       if (StructType *STy = dyn_cast<StructType>(AgTy)) {
lib/Transforms/IPO/DeadArgumentElimination.cpp
  331   else if (StructType *STy = dyn_cast<StructType>(RetTy))
  331   else if (StructType *STy = dyn_cast<StructType>(RetTy))
  346   if (StructType *STy = dyn_cast<StructType>(RetTy))
  346   if (StructType *STy = dyn_cast<StructType>(RetTy))
  814       if (StructType *STy = dyn_cast<StructType>(RetTy)) {
  814       if (StructType *STy = dyn_cast<StructType>(RetTy)) {
  817         NRetTy = StructType::get(STy->getContext(), RetTypes, STy->isPacked());
lib/Transforms/IPO/GlobalOpt.cpp
  138         StructType *STy = cast<StructType>(Ty);
  138         StructType *STy = cast<StructType>(Ty);
  140         for (StructType::element_iterator I = STy->element_begin(),
  479   if (StructType *STy = dyn_cast<StructType>(Ty)) {
  479   if (StructType *STy = dyn_cast<StructType>(Ty)) {
 1181     StructType *ST = cast<StructType>(PTy->getElementType());
 1181     StructType *ST = cast<StructType>(PTy->getElementType());
 1282   StructType *STy = cast<StructType>(MAT);
 1282   StructType *STy = cast<StructType>(MAT);
 1311     if (StructType *ST = dyn_cast<StructType>(FieldTy))
 1311     if (StructType *ST = dyn_cast<StructType>(FieldTy))
 1527   StructType *AllocSTy = dyn_cast<StructType>(AllocTy);
 1527   StructType *AllocSTy = dyn_cast<StructType>(AllocTy);
 2397   if (StructType *STy = dyn_cast<StructType>(Init->getType())) {
 2397   if (StructType *STy = dyn_cast<StructType>(Init->getType())) {
 2532         if (StructType *STy = dyn_cast<StructType>(CurrentInitTy))
 2532         if (StructType *STy = dyn_cast<StructType>(CurrentInitTy))
 2545       if (auto *STy = dyn_cast<StructType>(Ty))
 2545       if (auto *STy = dyn_cast<StructType>(Ty))
lib/Transforms/IPO/IPConstantPropagation.cpp
  170   StructType *STy = dyn_cast<StructType>(F.getReturnType());
  170   StructType *STy = dyn_cast<StructType>(F.getReturnType());
lib/Transforms/IPO/LowerTypeTests.cpp
  863   StructType *NewTy = cast<StructType>(NewInit->getType());
  863   StructType *NewTy = cast<StructType>(NewInit->getType());
lib/Transforms/IPO/StripSymbols.cpp
  179     StructType *STy = StructTypes[i];
lib/Transforms/InstCombine/InstCombineCompares.cpp
  181     if (StructType *STy = dyn_cast<StructType>(EltTy))
  181     if (StructType *STy = dyn_cast<StructType>(EltTy))
  442       if (StructType *STy = GTI.getStructTypeOrNull()) {
  472     if (StructType *STy = GTI.getStructTypeOrNull()) {
lib/Transforms/InstCombine/InstCombineInternal.h
  685     StructType *ST = cast<StructType>(II->getType());
  685     StructType *ST = cast<StructType>(II->getType());
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
  647   if (auto *ST = dyn_cast<StructType>(T)) {
  647   if (auto *ST = dyn_cast<StructType>(T)) {
 1106     auto *ST = cast<StructType>(VT);
 1106     auto *ST = cast<StructType>(VT);
 1181   if (auto *ST = dyn_cast<StructType>(T)) {
 1181   if (auto *ST = dyn_cast<StructType>(T)) {
lib/Transforms/InstCombine/InstructionCombining.cpp
 1124     if (StructType *STy = dyn_cast<StructType>(Ty)) {
 1124     if (StructType *STy = dyn_cast<StructType>(Ty)) {
lib/Transforms/Instrumentation/AddressSanitizer.cpp
 2130   StructType *LivenessTy = StructType::get(IntptrTy, IntptrTy);
 2130   StructType *LivenessTy = StructType::get(IntptrTy, IntptrTy);
 2241   StructType *GlobalStructTy =
 2242       StructType::get(IntptrTy, IntptrTy, IntptrTy, IntptrTy, IntptrTy,
 2281     StructType *NewTy = StructType::get(Ty, RightRedZoneTy);
 2281     StructType *NewTy = StructType::get(Ty, RightRedZoneTy);
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
  167   if (StructType *SGType = dyn_cast<StructType>(GType)) {
  167   if (StructType *SGType = dyn_cast<StructType>(GType)) {
  492     RetType = StructType::get(RetType, ShadowTy);
lib/Transforms/Instrumentation/GCOVProfiling.cpp
  971   StructType *StartFileCallArgsTy = StructType::create(
  971   StructType *StartFileCallArgsTy = StructType::create(
  973   StructType *EmitFunctionCallArgsTy = StructType::create(
  973   StructType *EmitFunctionCallArgsTy = StructType::create(
  976   StructType *EmitArcsCallArgsTy = StructType::create(
  976   StructType *EmitArcsCallArgsTy = StructType::create(
  978   StructType *FileInfoTy =
  979       StructType::create({StartFileCallArgsTy, Builder.getInt32Ty(),
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
 1195       Type *TypeWithPadding = StructType::get(
 1286   auto *DescriptorTy = StructType::get(Int32Ty, Int32Ty);
 1286   auto *DescriptorTy = StructType::get(Int32Ty, Int32Ty);
 1366   auto *NoteTy = StructType::get(Int32Ty, Int32Ty, Int32Ty, Name->getType(),
 1366   auto *NoteTy = StructType::get(Int32Ty, Int32Ty, Int32Ty, Name->getType(),
lib/Transforms/Instrumentation/InstrProfiling.cpp
  824   auto *DataTy = StructType::get(Ctx, makeArrayRef(DataTypes));
  824   auto *DataTy = StructType::get(Ctx, makeArrayRef(DataTypes));
  899   auto *VNodeTy = StructType::get(Ctx, makeArrayRef(VNodeTypes));
  899   auto *VNodeTy = StructType::get(Ctx, makeArrayRef(VNodeTypes));
lib/Transforms/Instrumentation/MemorySanitizer.cpp
  560   StructType *MsanContextStateTy;
  709   MsanContextStateTy = StructType::get(
  719   Type *RetTy = StructType::get(PointerType::get(IRB.getInt8Ty(), 0),
 1355     if (StructType *ST = dyn_cast<StructType>(OrigTy)) {
 1355     if (StructType *ST = dyn_cast<StructType>(OrigTy)) {
 1359       StructType *Res = StructType::get(*MS.C, Elements, ST->isPacked());
 1359       StructType *Res = StructType::get(*MS.C, Elements, ST->isPacked());
 1551     if (StructType *ST = dyn_cast<StructType>(ShadowTy)) {
 1551     if (StructType *ST = dyn_cast<StructType>(ShadowTy)) {
 3656       auto *ST = dyn_cast<StructType>(RetTy);
 3656       auto *ST = dyn_cast<StructType>(RetTy);
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
  504   StructType *ST = cast<StructType>(WO->getType());
  504   StructType *ST = cast<StructType>(WO->getType());
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
  347   if (StructType *ST = dyn_cast<StructType>(Ty))
  347   if (StructType *ST = dyn_cast<StructType>(Ty))
lib/Transforms/Scalar/SCCP.cpp
  305     if (auto *STy = dyn_cast<StructType>(F->getReturnType())) {
  305     if (auto *STy = dyn_cast<StructType>(F->getReturnType())) {
  356     auto *STy = dyn_cast<StructType>(V->getType());
  356     auto *STy = dyn_cast<StructType>(V->getType());
  401     if (auto *STy = dyn_cast<StructType>(V->getType()))
  401     if (auto *STy = dyn_cast<StructType>(V->getType()))
  411   bool isStructLatticeConstant(Function *F, StructType *STy) {
  852     if (auto *STy = dyn_cast<StructType>(ResultOp->getType()))
  852     if (auto *STy = dyn_cast<StructType>(ResultOp->getType()))
  909   auto *STy = dyn_cast<StructType>(IVI.getType());
  909   auto *STy = dyn_cast<StructType>(IVI.getType());
 1323       if (auto *STy = dyn_cast<StructType>(AI->getType())) {
 1323       if (auto *STy = dyn_cast<StructType>(AI->getType())) {
 1346   if (auto *STy = dyn_cast<StructType>(F->getReturnType())) {
 1346   if (auto *STy = dyn_cast<StructType>(F->getReturnType())) {
 1444       if (auto *STy = dyn_cast<StructType>(I.getType())) {
 1444       if (auto *STy = dyn_cast<StructType>(I.getType())) {
 1760     auto *ST = cast<StructType>(V->getType());
 1760     auto *ST = cast<StructType>(V->getType());
 2202     StructType *STy = cast<StructType>(F->getReturnType());
 2202     StructType *STy = cast<StructType>(F->getReturnType());
lib/Transforms/Scalar/SROA.cpp
  745         if (StructType *STy = GTI.getStructTypeOrNull()) {
 1444     } else if (StructType *STy = dyn_cast<StructType>(ElementTy)) {
 1444     } else if (StructType *STy = dyn_cast<StructType>(ElementTy)) {
 1509   StructType *STy = dyn_cast<StructType>(Ty);
 1509   StructType *STy = dyn_cast<StructType>(Ty);
 3329       if (StructType *STy = dyn_cast<StructType>(Ty)) {
 3329       if (StructType *STy = dyn_cast<StructType>(Ty)) {
 3477   } else if (StructType *STy = dyn_cast<StructType>(Ty)) {
 3477   } else if (StructType *STy = dyn_cast<StructType>(Ty)) {
 3540   StructType *STy = dyn_cast<StructType>(Ty);
 3540   StructType *STy = dyn_cast<StructType>(Ty);
 3570   StructType::element_iterator EI = STy->element_begin() + Index,
 3589   StructType *SubTy =
 3590       StructType::get(STy->getContext(), makeArrayRef(EI, EE), STy->isPacked());
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
  800       StructType *StTy = GTI.getStructType();
lib/Transforms/Utils/CodeExtractor.cpp
  808   StructType *StructTy;
  810     StructTy = StructType::get(M->getContext(), paramTy);
 1101   StructType *StructArgTy = nullptr;
 1110     StructArgTy = StructType::get(newFunction->getContext(), ArgTypes);
lib/Transforms/Utils/EscapeEnumerator.cpp
   69   Type *ExnTy = StructType::get(Type::getInt8PtrTy(C), Type::getInt32Ty(C));
lib/Transforms/Utils/Evaluator.cpp
  191     if (!isa<StructType>(Ty))
lib/Transforms/Utils/FunctionComparator.cpp
  317     unsigned NumElementsL = cast<StructType>(TyL)->getNumElements();
  318     unsigned NumElementsR = cast<StructType>(TyR)->getNumElements();
  445     StructType *STyL = cast<StructType>(TyL);
  445     StructType *STyL = cast<StructType>(TyL);
  446     StructType *STyR = cast<StructType>(TyR);
  446     StructType *STyR = cast<StructType>(TyR);
lib/Transforms/Utils/MetaRenamer.cpp
  115       for (StructType *STy : StructTypes) {
lib/Transforms/Utils/ModuleUtils.cpp
   30   StructType *EltTy = StructType::get(
   30   StructType *EltTy = StructType::get(
lib/Transforms/Utils/SanitizerStats.cpp
   36 StructType *SanitizerStatReport::makeModuleStatsTy() {
   37   return StructType::get(M->getContext(), {Type::getInt8PtrTy(M->getContext()),
lib/Transforms/Utils/SimplifyLibCalls.cpp
 2085                 : static_cast<Type *>(StructType::get(ArgTy, ArgTy));
 2088     ResTy = StructType::get(ArgTy, ArgTy);
lib/Transforms/Utils/ValueMapper.cpp
  478     return getVM()[V] = ConstantStruct::get(cast<StructType>(NewTy), Ops);
  972     auto &ST = *cast<StructType>(NewMembers.front()->getType());
  972     auto &ST = *cast<StructType>(NewMembers.front()->getType());
  974     EltTy = StructType::get(GV.getContext(), Tys, false);
  984       NewV = ConstantStruct::get(cast<StructType>(EltTy), E1, E2, Null);
lib/Transforms/Vectorize/SLPVectorizer.cpp
 2811   auto *ST = dyn_cast<StructType>(T);
 2811   auto *ST = dyn_cast<StructType>(T);
tools/bugpoint/ExtractFunction.cpp
  233   StructType *STy = StructType::get(Int32Ty, TorList[0].first->getType());
  233   StructType *STy = StructType::get(Int32Ty, TorList[0].first->getType());
tools/clang/include/clang/CodeGen/CGFunctionInfo.h
  210   static ABIArgInfo getCoerceAndExpand(llvm::StructType *coerceToType,
  216     auto unpaddedStruct = dyn_cast<llvm::StructType>(unpaddedCoerceToType);
  308   llvm::StructType *getCoerceAndExpandType() const {
  310     return cast<llvm::StructType>(TypeData);
  321           dyn_cast<llvm::StructType>(UnpaddedCoerceAndExpandType)) {
  521   llvm::StructType *ArgStruct;
  651   llvm::StructType *getArgStruct() const { return ArgStruct; }
  655   void setArgStruct(llvm::StructType *Ty, CharUnits Align) {
tools/clang/include/clang/CodeGen/ConstantInitBuilder.h
  313   llvm::Constant *finishStruct(llvm::StructType *structTy);
  347   StructBuilder beginStruct(llvm::StructType *ty = nullptr) {
  445   llvm::StructType *StructTy;
  453                                     llvm::StructType *structTy)
  465   void suggestType(llvm::StructType *structTy) {
  499   StructBuilder beginStruct(llvm::StructType *structTy = nullptr) {
  553                         llvm::StructType *structTy)
tools/clang/include/clang/CodeGen/SwiftCallingConv.h
  108   std::pair<llvm::StructType*, llvm::Type*> getCoerceAndExpandTypes() const;
tools/clang/lib/CodeGen/Address.h
  108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGBlocks.cpp
  535       llvm::StructType::get(CGM.getLLVMContext(), elementTypes, true);
  666       llvm::StructType::get(CGM.getLLVMContext(), elementTypes, true);
  774     llvm::StructType::get(CGM.getLLVMContext(), elementTypes, true);
 1206   BlockDescriptorType = llvm::StructType::create(
 1236     GenericBlockLiteralType = llvm::StructType::create(
 1247         llvm::StructType::create("struct.__block_literal_generic", VoidPtrTy,
 2607 CodeGenFunction::buildByrefHelpers(llvm::StructType &byrefType,
 2735   llvm::StructType *byrefType =
 2736     llvm::StructType::create(getLLVMContext(),
 2823   llvm::StructType *byrefType = cast<llvm::StructType>(
 2823   llvm::StructType *byrefType = cast<llvm::StructType>(
tools/clang/lib/CodeGen/CGBlocks.h
  145   llvm::StructType *Type;
  245   llvm::StructType *StructureType;
tools/clang/lib/CodeGen/CGBuilder.h
  180     llvm::StructType *ElTy = cast<llvm::StructType>(Addr.getElementType());
  180     llvm::StructType *ElTy = cast<llvm::StructType>(Addr.getElementType());
  307     llvm::StructType *ElTy = cast<llvm::StructType>(Addr.getElementType());
  307     llvm::StructType *ElTy = cast<llvm::StructType>(Addr.getElementType());
tools/clang/lib/CodeGen/CGBuiltin.cpp
 6215     llvm::Type *STy = llvm::StructType::get(Int32Ty, Int32Ty);
 7204     llvm::Type *STy = llvm::StructType::get(Int64Ty, Int64Ty);
10032   llvm::Type *STy = llvm::StructType::get(Int32Ty, Int32Ty, Int32Ty,
10105     llvm::Type *STy = llvm::StructType::get(Int32Ty, Int32Ty, Int32Ty,
tools/clang/lib/CodeGen/CGCUDANV.cpp
  509   llvm::StructType *FatbinWrapperTy =
  510       llvm::StructType::get(IntTy, IntTy, VoidPtrTy, VoidPtrTy);
tools/clang/lib/CodeGen/CGCall.cpp
 1128                                    llvm::StructType *SrcSTy,
 1150   if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy))
 1150   if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy))
 1227   if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy)) {
 1227   if (llvm::StructType *SrcSTy = dyn_cast<llvm::StructType>(SrcTy)) {
 1272   if (llvm::StructType *STy =
 1273         dyn_cast<llvm::StructType>(Val->getType())) {
 1303   if (llvm::StructType *DstSTy = dyn_cast<llvm::StructType>(DstTy)) {
 1303   if (llvm::StructType *DstSTy = dyn_cast<llvm::StructType>(DstTy)) {
 1452       llvm::StructType *STy = dyn_cast<llvm::StructType>(AI.getCoerceToType());
 1452       llvm::StructType *STy = dyn_cast<llvm::StructType>(AI.getCoerceToType());
 1634       llvm::StructType *st = dyn_cast<llvm::StructType>(argType);
 1634       llvm::StructType *st = dyn_cast<llvm::StructType>(argType);
 1674     return llvm::StructType::get(getLLVMContext());
 2352       if (!isa<llvm::StructType>(ArgI.getCoerceToType()) &&
 2464       llvm::StructType *STy = dyn_cast<llvm::StructType>(ArgI.getCoerceToType());
 2464       llvm::StructType *STy = dyn_cast<llvm::StructType>(ArgI.getCoerceToType());
 3832   if (llvm::StructType *ArgStruct = CallInfo.getArgStruct()) {
 4033       if (!isa<llvm::StructType>(ArgInfo.getCoerceToType()) &&
 4094       llvm::StructType *STy =
 4095             dyn_cast<llvm::StructType>(ArgInfo.getCoerceToType());
 4210         llvm::StructType *FullTy = CallInfo.getArgStruct();
 4211         llvm::StructType *DeclaredTy = cast<llvm::StructType>(
 4211         llvm::StructType *DeclaredTy = cast<llvm::StructType>(
 4214         for (llvm::StructType::element_iterator DI = DeclaredTy->element_begin(),
 4476       bool requiresExtract = isa<llvm::StructType>(CI->getType());
tools/clang/lib/CodeGen/CGCleanup.cpp
   53         llvm::StructType::get(V.first->getType(), V.second->getType());
tools/clang/lib/CodeGen/CGDecl.cpp
 1002                                               llvm::StructType *STy,
 1043   if (const auto STy = dyn_cast<llvm::StructType>(OrigTy))
 1190     if (auto *STy = dyn_cast<llvm::StructType>(Ty)) {
 1190     if (auto *STy = dyn_cast<llvm::StructType>(Ty)) {
 1267     return llvm::ConstantStruct::get(cast<llvm::StructType>(Ty), Values);
tools/clang/lib/CodeGen/CGException.cpp
  778       Builder.CreateLandingPad(llvm::StructType::get(Int8PtrTy, Int32Ty), 0);
 1474       Builder.CreateLandingPad(llvm::StructType::get(Int8PtrTy, Int32Ty), 0);
 1586   llvm::Type *LPadType = llvm::StructType::get(Exn->getType(), Sel->getType());
 1955   llvm::Type *PtrsTy = llvm::StructType::get(RecordTy, CGM.VoidPtrTy);
tools/clang/lib/CodeGen/CGExpr.cpp
 3225   llvm::StructType *SourceLocationTy =
 3226       llvm::StructType::get(VoidPtrTy, Int32Ty, Int32Ty);
 3227   llvm::StructType *CfiCheckFailDataTy =
 3228       llvm::StructType::get(Int8Ty, SourceLocationTy, VoidPtrTy);
 4801       llvm::StructType *PrefixStructTy = llvm::StructType::get(
 4801       llvm::StructType *PrefixStructTy = llvm::StructType::get(
tools/clang/lib/CodeGen/CGExprConstant.cpp
  332       auto *ST = cast<llvm::StructType>(CA->getType());
  332       auto *ST = cast<llvm::StructType>(CA->getType());
  482   llvm::StructType *STy = llvm::ConstantStruct::getTypeForElements(
  487   if (llvm::StructType *DesiredSTy = dyn_cast<llvm::StructType>(DesiredTy)) {
  487   if (llvm::StructType *DesiredSTy = dyn_cast<llvm::StructType>(DesiredTy)) {
  517     auto *STy = dyn_cast<llvm::StructType>(DesiredTy);
  517     auto *STy = dyn_cast<llvm::StructType>(DesiredTy);
  972   llvm::StructType *SType =
  973       llvm::StructType::get(CGM.getLLVMContext(), Types, true);
 1066       llvm::StructType *STy = llvm::StructType::get(VMContext, Types, false);
 1066       llvm::StructType *STy = llvm::StructType::get(VMContext, Types, false);
 2034     llvm::StructType *STy =
 2035         llvm::StructType::get(Complex[0]->getType(), Complex[1]->getType());
 2057     llvm::StructType *STy =
 2058         llvm::StructType::get(Complex[0]->getType(), Complex[1]->getType());
 2195   llvm::StructType *structure =
tools/clang/lib/CodeGen/CGExprScalar.cpp
 4625     if (auto *STy = GTI.getStructTypeOrNull()) {
tools/clang/lib/CodeGen/CGGPUBuiltin.cpp
  107     llvm::Type *AllocaTy = llvm::StructType::create(ArgTypes, "printf_args");
tools/clang/lib/CodeGen/CGObjCGNU.cpp
  111   llvm::StructType *ObjCSuperTy;
  126   llvm::StructType *ProtocolTy;
  172   llvm::StructType *PropertyMetadataTy;
  810       llvm::StructType *SlotStructTy =
  811           llvm::StructType::get(PtrTy, PtrTy, PtrTy, IntTy, IMPTy);
 1156     llvm::StructType *ObjCMethodDescTy =
 1157       llvm::StructType::get(CGM.getLLVMContext(),
 1474   llvm::StructType *emptyStruct = nullptr;
 1487         emptyStruct = llvm::StructType::create(VMContext, ".objc_section_sentinel");
 1812       llvm::StructType *ObjCIvarTy = llvm::StructType::get(
 1812       llvm::StructType *ObjCIvarTy = llvm::StructType::get(
 1993         llvm::StructType::get(CGM.getLLVMContext(),
 2175   ProtocolTy = llvm::StructType::get(IdTy,
 2197   PropertyMetadataTy = llvm::StructType::get(CGM.getLLVMContext(), {
 2201   ObjCSuperTy = llvm::StructType::get(IdTy, IdTy);
 2571     llvm::Type *CastTy = llvm::StructType::get(IdTy, IdTy);
 2581   llvm::StructType *ObjCSuperTy =
 2582       llvm::StructType::get(Receiver->getType(), IdTy);
 2780   llvm::StructType *ObjCMethodTy =
 2781     llvm::StructType::get(CGM.getLLVMContext(), {
 2793       llvm::StructType::get(CGM.getLLVMContext(), {
 2800       llvm::StructType::get(CGM.getLLVMContext(), {
 2851   llvm::StructType *ObjCIvarTy =
 2852       llvm::StructType::get(PtrToInt8Ty, PtrToInt8Ty, IntTy);
 2893   llvm::StructType *ClassTy = llvm::StructType::get(
 2893   llvm::StructType *ClassTy = llvm::StructType::get(
 2986   llvm::StructType *ObjCMethodDescTy =
 2987     llvm::StructType::get(CGM.getLLVMContext(), { PtrToInt8Ty, PtrToInt8Ty });
 3614   llvm::StructType *selStructTy =
 3615     dyn_cast<llvm::StructType>(SelectorTy->getElementType());
 3618     selStructTy = llvm::StructType::get(CGM.getLLVMContext(),
 3754     llvm::StructType *moduleTy =
 3755       llvm::StructType::get(CGM.getLLVMContext(),
tools/clang/lib/CodeGen/CGObjCMac.cpp
  106         llvm::StructType::get(longDoubleType, longDoubleType);
  210   llvm::StructType *SuperTy;
  216   llvm::StructType *PropertyTy;
  220   llvm::StructType *PropertyListTy;
  225   llvm::StructType *MethodTy;
  498   llvm::StructType *SymtabTy;
  502   llvm::StructType *ModuleTy;
  505   llvm::StructType *ProtocolTy;
  510   llvm::StructType *ProtocolExtensionTy;
  516   llvm::StructType *MethodDescriptionTy;
  519   llvm::StructType *MethodDescriptionListTy;
  524   llvm::StructType *ProtocolListTy;
  528   llvm::StructType *CategoryTy;
  530   llvm::StructType *ClassTy;
  534   llvm::StructType *ClassExtensionTy;
  538   llvm::StructType *IvarTy;
  540   llvm::StructType *IvarListTy;
  544   llvm::StructType *MethodListTy;
  549   llvm::StructType *ExceptionDataTy;
  603   llvm::StructType *MethodListnfABITy;
  609   llvm::StructType *ProtocolnfABITy;
  615   llvm::StructType *ProtocolListnfABITy;
  621   llvm::StructType *ClassnfABITy;
  627   llvm::StructType *IvarnfABITy;
  630   llvm::StructType *IvarListnfABITy;
  636   llvm::StructType *ClassRonfABITy;
  642   llvm::StructType *CategorynfABITy;
  651   llvm::StructType *MessageRefTy;
  665   llvm::StructType *SuperMessageRefTy;
  751   llvm::StructType *EHTypeTy;
  918   llvm::StructType *NSConstantStringType = nullptr;
 1996       llvm::StructType::create({
 2607     CGM.getDataLayout().getStructLayout(cast<llvm::StructType>(Ty));
 5664   SuperTy = cast<llvm::StructType>(Types.ConvertType(SuperCTy));
 5671   PropertyTy = llvm::StructType::create("struct._prop_t", Int8PtrTy, Int8PtrTy);
 5678   PropertyListTy = llvm::StructType::create(
 5688   MethodTy = llvm::StructType::create("struct._objc_method", SelectorPtrTy,
 5692   CacheTy = llvm::StructType::create(VMContext, "struct._objc_cache");
 5702   MethodDescriptionTy = llvm::StructType::create(
 5710       llvm::StructType::create("struct._objc_method_description_list", IntTy,
 5727   ProtocolExtensionTy = llvm::StructType::create(
 5738     llvm::StructType::create(VMContext, "struct._objc_protocol");
 5741     llvm::StructType::create(VMContext, "struct._objc_protocol_list");
 5768   IvarTy = llvm::StructType::create("struct._objc_ivar", Int8PtrTy, Int8PtrTy,
 5773     llvm::StructType::create(VMContext, "struct._objc_ivar_list");
 5778     llvm::StructType::create(VMContext, "struct._objc_method_list");
 5782   ClassExtensionTy = llvm::StructType::create(
 5786   ClassTy = llvm::StructType::create(VMContext, "struct._objc_class");
 5819   CategoryTy = llvm::StructType::create(
 5833   SymtabTy = llvm::StructType::create("struct._objc_symtab", LongTy,
 5844   ModuleTy = llvm::StructType::create("struct._objc_module", LongTy, LongTy,
 5854   ExceptionDataTy = llvm::StructType::create(
 5867       llvm::StructType::create("struct.__method_list_t", IntTy, IntTy,
 5890     llvm::StructType::create(VMContext, "struct._objc_protocol_list");
 5892   ProtocolnfABITy = llvm::StructType::create(
 5919   IvarnfABITy = llvm::StructType::create(
 5929       llvm::StructType::create("struct._ivar_list_t", IntTy, IntTy,
 5949   ClassRonfABITy = llvm::StructType::create(
 5967   ClassnfABITy = llvm::StructType::create(VMContext, "struct._class_t");
 5986   CategorynfABITy = llvm::StructType::create(
 6016   MessageRefTy = cast<llvm::StructType>(Types.ConvertType(MessageRefCTy));
 6026   SuperMessageRefTy = llvm::StructType::create("struct._super_message_ref_t",
 6038   EHTypeTy = llvm::StructType::create("struct._objc_typeinfo",
tools/clang/lib/CodeGen/CGOpenCLRuntime.cpp
   54         llvm::StructType::create(Ctx, "opencl.event_t"), AddrSpc);
   57         llvm::StructType::create(Ctx, "opencl.clk_event_t"), AddrSpc);
   60         llvm::StructType::create(Ctx, "opencl.queue_t"), AddrSpc);
   63         llvm::StructType::create(Ctx, "opencl.reserve_id_t"), AddrSpc);
   82     PipeTy = llvm::PointerType::get(llvm::StructType::create(
   91     SamplerTy = llvm::PointerType::get(llvm::StructType::create(
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 1525   llvm::StructType *StructTy = RL.getLLVMType();
 7803     llvm::StructType *St =
tools/clang/lib/CodeGen/CGOpenMPRuntime.h
  330   llvm::StructType *IdentTy = nullptr;
tools/clang/lib/CodeGen/CGRecordLayout.h
  117   llvm::StructType *CompleteObjectType;
  121   llvm::StructType *BaseSubobjectType;
  149   CGRecordLayout(llvm::StructType *CompleteObjectType,
  150                  llvm::StructType *BaseSubobjectType,
  160   llvm::StructType *getLLVMType() const {
  166   llvm::StructType *getBaseSubobjectLLVMType() const {
tools/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp
  733                                                   llvm::StructType *Ty) {
  739   llvm::StructType *BaseTy = nullptr;
  745       BaseTy = llvm::StructType::create(
  802   llvm::StructType *ST = RL->getLLVMType();
tools/clang/lib/CodeGen/CGStmt.cpp
 2268     ResultType = llvm::StructType::get(getLLVMContext(), ResultRegTypes);
tools/clang/lib/CodeGen/CGVTables.cpp
  454     Ty = llvm::StructType::get(getLLVMContext());
  736   return llvm::StructType::get(CGM.getLLVMContext(), tys);
tools/clang/lib/CodeGen/CodeGenFunction.h
 4357   BlockByrefHelpers *buildByrefHelpers(llvm::StructType &byrefType,
tools/clang/lib/CodeGen/CodeGenModule.cpp
 1159   llvm::StructType *CtorStructTy = llvm::StructType::get(
 1159   llvm::StructType *CtorStructTy = llvm::StructType::get(
 4706   auto *STy = cast<llvm::StructType>(getTypes().ConvertType(CFTy));
 4706   auto *STy = cast<llvm::StructType>(getTypes().ConvertType(CFTy));
tools/clang/lib/CodeGen/CodeGenTypes.cpp
   51                                      llvm::StructType *Ty,
  102   llvm::DenseMap<const Type*, llvm::StructType *>::const_iterator I =
  333     return llvm::StructType::get(getLLVMContext());
  341     return llvm::StructType::get(getLLVMContext());
  361     ResultType = llvm::StructType::get(getLLVMContext());
  545     ResultType = llvm::StructType::get(EltTy, EltTy);
  626       T = llvm::StructType::create(getLLVMContext());
  666       ResultType = llvm::StructType::create(getLLVMContext());
  686       ResultType = llvm::StructType::get(getLLVMContext(),
  712 llvm::StructType *CodeGenTypes::ConvertRecordDeclType(const RecordDecl *RD) {
  717   llvm::StructType *&Entry = RecordDeclTypes[Key];
  721     Entry = llvm::StructType::create(getLLVMContext());
  724   llvm::StructType *Ty = Entry;
tools/clang/lib/CodeGen/CodeGenTypes.h
   81   llvm::DenseMap<const Type*, llvm::StructType *> RecordDeclTypes;
  276                                       llvm::StructType *Ty);
  280   void addRecordTypeName(const RecordDecl *RD, llvm::StructType *Ty,
  286   llvm::StructType *ConvertRecordDeclType(const RecordDecl *TD);
tools/clang/lib/CodeGen/ConstantInitBuilder.cpp
  260 ConstantAggregateBuilderBase::finishStruct(llvm::StructType *ty) {
  267     ty = llvm::StructType::get(Builder.CGM.getLLVMContext(), {}, Packed);
tools/clang/lib/CodeGen/CoverageMappingGen.cpp
 1330         llvm::StructType::get(Ctx, makeArrayRef(FunctionRecordTypes),
 1424       llvm::StructType::get(Ctx, makeArrayRef(CovDataHeaderTypes));
 1435   auto CovDataTy = llvm::StructType::get(Ctx, makeArrayRef(CovDataTypes));
tools/clang/lib/CodeGen/CoverageMappingGen.h
   55   llvm::StructType *FunctionRecordTy;
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
  552   return llvm::StructType::get(CGM.PtrDiffTy, CGM.PtrDiffTy);
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
  445   llvm::StructType *getTypeDescriptorType(StringRef TypeInfoString) {
  448     llvm::StructType *&TypeDescriptorType =
  457         llvm::StructType::create(CGM.getLLVMContext(), FieldTypes, TDTypeName);
  467   llvm::StructType *getBaseClassDescriptorType() {
  479     BaseClassDescriptorType = llvm::StructType::create(
  484   llvm::StructType *getClassHierarchyDescriptorType() {
  488     ClassHierarchyDescriptorType = llvm::StructType::create(
  501   llvm::StructType *getCompleteObjectLocatorType() {
  504     CompleteObjectLocatorType = llvm::StructType::create(
  680   llvm::StructType *getCatchableTypeType() {
  692     CatchableTypeType = llvm::StructType::create(
  697   llvm::StructType *getCatchableTypeArrayType(uint32_t NumEntries) {
  698     llvm::StructType *&CatchableTypeArrayType =
  712         llvm::StructType::create(CGM.getLLVMContext(), FieldTypes, CTATypeName);
  716   llvm::StructType *getThrowInfoType() {
  725     ThrowInfoType = llvm::StructType::create(CGM.getLLVMContext(), FieldTypes,
  791   llvm::DenseMap<size_t, llvm::StructType *> TypeDescriptorTypeMap;
  792   llvm::StructType *BaseClassDescriptorType;
  793   llvm::StructType *ClassHierarchyDescriptorType;
  794   llvm::StructType *CompleteObjectLocatorType;
  798   llvm::StructType *CatchableTypeType;
  799   llvm::DenseMap<uint32_t, llvm::StructType *> CatchableTypeArrayTypeMap;
  800   llvm::StructType *ThrowInfoType;
 2629   return llvm::StructType::get(CGM.getLLVMContext(), fields);
 2852   llvm::StructType *LType = cast<llvm::StructType>(L->getType());
 2852   llvm::StructType *LType = cast<llvm::StructType>(L->getType());
 3721   llvm::StructType *Type = ABI.getCompleteObjectLocatorType();
 3834   llvm::StructType *TypeDescriptorType =
 4074   llvm::StructType *CTType = getCatchableTypeType();
 4181   llvm::StructType *CTAType = getCatchableTypeArrayType(NumEntries);
 4255   llvm::StructType *TIType = getThrowInfoType();
tools/clang/lib/CodeGen/PatternInit.cpp
   80   auto *StructTy = cast<llvm::StructType>(Ty);
   80   auto *StructTy = cast<llvm::StructType>(Ty);
tools/clang/lib/CodeGen/SwiftCallingConv.cpp
  550 std::pair<llvm::StructType*, llvm::Type*>
  557     auto type = llvm::StructType::get(ctx);
  589   auto coercionType = llvm::StructType::get(ctx, elts, packed);
  600       unpaddedType = llvm::StructType::get(ctx, elts, /*packed*/ false);
tools/clang/lib/CodeGen/TargetInfo.cpp
 1683       llvm::Type *Result = llvm::StructType::get(LLVMContext, Elements);
 1931   FI.setArgStruct(llvm::StructType::get(getVMContext(), FrameFields,
 3125   if (llvm::StructType *STy = dyn_cast<llvm::StructType>(IRType)) {
 3125   if (llvm::StructType *STy = dyn_cast<llvm::StructType>(IRType)) {
 3210   if (llvm::StructType *STy = dyn_cast<llvm::StructType>(IRType)) {
 3210   if (llvm::StructType *STy = dyn_cast<llvm::StructType>(IRType)) {
 3280   llvm::StructType *Result = llvm::StructType::get(Lo, Hi);
 3280   llvm::StructType *Result = llvm::StructType::get(Lo, Hi);
 3354     ResType = llvm::StructType::get(llvm::Type::getX86_FP80Ty(getVMContext()),
 3796     llvm::StructType *ST = cast<llvm::StructType>(AI.getCoerceToType());
 3796     llvm::StructType *ST = cast<llvm::StructType>(AI.getCoerceToType());
 3863                          : llvm::StructType::get(CGF.DoubleTy, CGF.DoubleTy);
 4842         CoerceTy = llvm::StructType::get(CoerceTy, CoerceTy);
 7045     return llvm::StructType::get(getVMContext(), ArgList);
 7056     return llvm::StructType::get(getVMContext(), ArgList);
 7093   return llvm::StructType::get(getVMContext(), ArgList);
 7180         return llvm::StructType::get(getVMContext(), RTList,
 7188   return llvm::StructType::get(getVMContext(), RTList);
 7640       llvm::Type *Result = llvm::StructType::get(LLVMContext, Elements);
 8256     void addStruct(uint64_t Offset, llvm::StructType *StrTy) {
 8263           addStruct(ElemOffset, cast<llvm::StructType>(ElemTy));
 8288     bool isUsableType(llvm::StructType *Ty) const {
 8297         return llvm::StructType::get(Context, Elems);
 8334   llvm::StructType *StrTy = dyn_cast<llvm::StructType>(CGT.ConvertType(Ty));
 8334   llvm::StructType *StrTy = dyn_cast<llvm::StructType>(CGT.ConvertType(Ty));
 8565     llvm::Type *Result = llvm::StructType::get(LLVMContext, Elements);
 9479         llvm::StructType::get(getVMContext(), CoerceElts, !Field1Off.isZero()),
 9505       llvm::StructType::get(getVMContext(), CoerceElts, IsPacked);
 9507       llvm::StructType::get(getVMContext(), UnpaddedCoerceElts, IsPacked);
tools/clang/tools/clang-offload-wrapper/ClangOffloadWrapper.cpp
   68   StructType *EntryTy = nullptr;
   69   StructType *ImageTy = nullptr;
   70   StructType *DescTy = nullptr;
   90   StructType *getEntryTy() {
   92       EntryTy = StructType::create("__tgt_offload_entry", Type::getInt8PtrTy(C),
  106   StructType *getDeviceImageTy() {
  108       ImageTy = StructType::create("__tgt_device_image", Type::getInt8PtrTy(C),
  124   StructType *getBinDescTy() {
  126       DescTy = StructType::create("__tgt_bin_desc", Type::getInt32Ty(C),
tools/polly/lib/Analysis/ScopBuilder.cpp
 1336   auto *StructArrTy = dyn_cast<StructType>(Ty);
 1336   auto *StructArrTy = dyn_cast<StructType>(Ty);
 1365   StructType *DescriptorDimTy =
 1366       dyn_cast<StructType>(DescriptorDimArrayTy->getElementType());
 1437         dyn_cast<StructType>(DescriptorGEP->getSourceElementType());
tools/polly/lib/CodeGen/LoopGenerators.cpp
  231   StructType *Ty = StructType::get(Builder.getContext(), Members);
  231   StructType *Ty = StructType::get(Builder.getContext(), Members);
tools/polly/lib/CodeGen/LoopGeneratorsKMP.cpp
   38     StructType *IdentTy = M->getTypeByName("struct.ident_t");
  278     StructType *IdentTy = M->getTypeByName("struct.ident_t");
  297     StructType *IdentTy = M->getTypeByName("struct.ident_t");
  320   StructType *IdentTy = M->getTypeByName("struct.ident_t");
  359   StructType *IdentTy = M->getTypeByName("struct.ident_t");
  381   StructType *IdentTy = M->getTypeByName("struct.ident_t");
  421   StructType *IdentTy = M->getTypeByName("struct.ident_t");
  452     StructType *IdentTy = M->getTypeByName(StructName);
  462           StructType::create(M->getContext(), LocMembers, StructName, false);
tools/polly/lib/CodeGen/PerfMonitor.cpp
   47   StructType *ST = StructType::get(Builder.getInt32Ty(), Fn->getType(),
   47   StructType *ST = StructType::get(Builder.getInt32Ty(), Fn->getType(),
unittests/Analysis/TargetLibraryInfoTest.cpp
   64   auto *StructTy = M->getTypeByName("foo");
unittests/AsmParser/AsmParserTest.cpp
  205   StructType *ST = cast<StructType>(Ty);
  205   StructType *ST = cast<StructType>(Ty);
  219   ST = cast<StructType>(Ty);
  245   ST = cast<StructType>(Ty);
  335   StructType *ST = cast<StructType>(Ty);
  335   StructType *ST = cast<StructType>(Ty);
  350   ST = cast<StructType>(Ty);
  378   ST = cast<StructType>(Ty);
unittests/ExecutionEngine/Orc/OrcTestCommon.h
  187 inline StructType *getDummyStructTy(LLVMContext &Context) {
  188   return StructType::get(ArrayType::get(Type::getInt32Ty(Context), 256));
unittests/FuzzMutate/OperationsTest.cpp
   92       ConstantStruct::get(StructType::create(Ctx, "OpaqueStruct"));
  336   Type *StructTy = StructType::create(Ctx, {Int8PtrTy, Int32Ty});
  337   Type *OpaqueTy = StructType::create(Ctx, "OpaqueStruct");
unittests/IR/AttributesTest.cpp
  176   StructType *Ty = StructType::create(Type::getInt32Ty(C), "mystruct");
  176   StructType *Ty = StructType::create(Type::getInt32Ty(C), "mystruct");
unittests/IR/ConstantsTest.cpp
  467   auto *U = StructType::create(Context, "Unsized");
  467   auto *U = StructType::create(Context, "Unsized");
  469   auto *S = StructType::create(EltTys);
  469   auto *S = StructType::create(EltTys);
unittests/IR/TypesTest.cpp
   20   StructType *Struct = StructType::create(C, "FooBar");
   20   StructType *Struct = StructType::create(C, "FooBar");
   32   StructType *Foo = StructType::create(C, "Foo");
   32   StructType *Foo = StructType::create(C, "Foo");
   33   StructType *Bar = StructType::create(C, "Bar");
   33   StructType *Bar = StructType::create(C, "Bar");
unittests/Linker/LinkModulesTest.cpp
  161   StructType *STy = StructType::create(Ctx, PointerType::get(FTy, 0));
  161   StructType *STy = StructType::create(Ctx, PointerType::get(FTy, 0));
usr/include/c++/7.4.0/type_traits
 1983     { typedef _Up     type; };