/external/llvm/lib/Transforms/IPO/ |
D | IPConstantPropagation.cpp | 142 StructType *STy = dyn_cast<StructType>(F.getReturnType()); in PropagateConstantReturn() local 143 if (STy) in PropagateConstantReturn() 144 for (unsigned i = 0, e = STy->getNumElements(); i < e; ++i) in PropagateConstantReturn() 145 RetVals.push_back(UndefValue::get(STy->getElementType(i))); in PropagateConstantReturn() 160 if (!STy) in PropagateConstantReturn() 210 if (!STy) { in PropagateConstantReturn()
|
D | StripSymbols.cpp | 180 StructType *STy = StructTypes[i]; in StripTypeNames() local 181 if (STy->isLiteral() || STy->getName().empty()) continue; in StripTypeNames() 183 if (PreserveDbgInfo && STy->getName().startswith("llvm.dbg")) in StripTypeNames() 186 STy->setName(""); in StripTypeNames()
|
D | ArgumentPromotion.cpp | 314 if (StructType *STy = dyn_cast<StructType>(AgTy)) { in PromoteArguments() local 315 if (MaxElements > 0 && STy->getNumElements() > MaxElements) { in PromoteArguments() 324 for (const auto *EltTy : STy->elements()) { in PromoteArguments() 344 if (StructType *STy = dyn_cast<StructType>(AgTy)) { in PromoteArguments() local 346 for (const auto *EltTy : STy->elements()) { in PromoteArguments() 678 StructType *STy = cast<StructType>(AgTy); in DoPromotion() local 679 Params.insert(Params.end(), STy->element_begin(), STy->element_end()); in DoPromotion() 808 StructType *STy = cast<StructType>(AgTy); in DoPromotion() local 811 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in DoPromotion() 814 STy, *AI, Idxs, (*AI)->getName() + "." + Twine(i), Call); in DoPromotion() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | MetaRenamer.cpp | 104 for (StructType *STy : StructTypes) { in runOnModule() 105 if (STy->isLiteral() || STy->getName().empty()) continue; in runOnModule() 108 STy->setName((Twine("struct.") + in runOnModule()
|
/external/llvm/include/llvm/ADT/ |
D | SetVector.h | 233 template <class STy> 234 bool set_union(const STy &S) { in set_union() 237 for (typename STy::const_iterator SI = S.begin(), SE = S.end(); SI != SE; in set_union() 248 template <class STy> 249 void set_subtract(const STy &S) { in set_subtract() 250 for (typename STy::const_iterator SI = S.begin(), SE = S.end(); SI != SE; in set_subtract()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/ |
D | IPConstantPropagation.cpp | 148 StructType *STy = dyn_cast<StructType>(F.getReturnType()); in PropagateConstantReturn() local 149 if (STy) in PropagateConstantReturn() 150 for (unsigned i = 0, e = STy->getNumElements(); i < e; ++i) in PropagateConstantReturn() 151 RetVals.push_back(UndefValue::get(STy->getElementType(i))); in PropagateConstantReturn() 166 if (!STy) in PropagateConstantReturn() 216 if (!STy) { in PropagateConstantReturn()
|
D | ArgumentPromotion.cpp | 142 StructType *STy = cast<StructType>(AgTy); in doPromotion() local 143 Params.insert(Params.end(), STy->element_begin(), STy->element_end()); in doPromotion() 144 ArgAttrVec.insert(ArgAttrVec.end(), STy->getNumElements(), in doPromotion() 257 StructType *STy = cast<StructType>(AgTy); in doPromotion() local 260 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in doPromotion() 263 STy, *AI, Idxs, (*AI)->getName() + "." + Twine(i), Call); in doPromotion() 386 StructType *STy = cast<StructType>(AgTy); in doPromotion() local 390 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in doPromotion() 902 if (StructType *STy = dyn_cast<StructType>(AgTy)) { in promoteArguments() local 903 if (MaxElements > 0 && STy->getNumElements() > MaxElements) { in promoteArguments() [all …]
|
D | StripSymbols.cpp | 180 StructType *STy = StructTypes[i]; in StripTypeNames() local 181 if (STy->isLiteral() || STy->getName().empty()) continue; in StripTypeNames() 183 if (PreserveDbgInfo && STy->getName().startswith("llvm.dbg")) in StripTypeNames() 186 STy->setName(""); in StripTypeNames()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/ |
D | SetVector.h | 245 template <class STy> 246 bool set_union(const STy &S) { in set_union() 249 for (typename STy::const_iterator SI = S.begin(), SE = S.end(); SI != SE; in set_union() 260 template <class STy> 261 void set_subtract(const STy &S) { in set_subtract() 262 for (typename STy::const_iterator SI = S.begin(), SE = S.end(); SI != SE; in set_subtract()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | MetaRenamer.cpp | 116 for (StructType *STy : StructTypes) { in runOnModule() 117 if (STy->isLiteral() || STy->getName().empty()) continue; in runOnModule() 120 STy->setName((Twine("struct.") + in runOnModule()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Linker/ |
D | IRMover.cpp | 68 void finishType(StructType *DTy, StructType *STy, ArrayRef<Type *> ETypes); 105 if (auto *STy = dyn_cast<StructType>(Ty)) in addTypeMapping() local 106 if (STy->hasName()) in addTypeMapping() 107 STy->setName(""); in addTypeMapping() 215 void TypeMapTy::finishType(StructType *DTy, StructType *STy, in finishType() argument 217 DTy->setBody(ETypes, STy->isPacked()); in finishType() 220 if (STy->hasName()) { in finishType() 221 SmallString<16> TmpName = STy->getName(); in finishType() 222 STy->setName(""); in finishType() 244 StructType *STy = cast<StructType>(Ty); in get() local [all …]
|
/external/llvm/lib/IR/ |
D | ConstantFold.cpp | 117 if (StructType *STy = dyn_cast<StructType>(ElTy)) { in FoldBitCast() local 118 if (STy->getNumElements() == 0) break; in FoldBitCast() 119 ElTy = STy->getElementType(0); in FoldBitCast() 121 } else if (SequentialType *STy = in FoldBitCast() local 124 ElTy = STy->getElementType(); in FoldBitCast() 359 if (StructType *STy = dyn_cast<StructType>(Ty)) in getFoldedSizeOf() local 360 if (!STy->isPacked()) { in getFoldedSizeOf() 361 unsigned NumElems = STy->getNumElements(); in getFoldedSizeOf() 367 getFoldedSizeOf(STy->getElementType(0), DestTy, true); in getFoldedSizeOf() 371 getFoldedSizeOf(STy->getElementType(i), DestTy, true)) { in getFoldedSizeOf() [all …]
|
D | Type.cpp | 97 if (auto *STy = dyn_cast<StructType>(this)) { in isEmptyTy() local 98 unsigned NumElements = STy->getNumElements(); in isEmptyTy() 100 if (!STy->getElementType(i)->isEmptyTy()) in isEmptyTy() 555 if (auto *STy = dyn_cast<StructType>(this)) { in getTypeAtIndex() local 559 return STy->getElementType(Idx); in getTypeAtIndex() 566 if (auto *STy = dyn_cast<StructType>(this)) { in getTypeAtIndex() local 568 return STy->getElementType(Idx); in getTypeAtIndex() 575 if (auto *STy = dyn_cast<StructType>(this)) { in indexValid() local 584 return CU && CU->getZExtValue() < STy->getNumElements(); in indexValid() 592 if (auto *STy = dyn_cast<StructType>(this)) in indexValid() local [all …]
|
D | Operator.cpp | 36 if (StructType *STy = dyn_cast<StructType>(*GTI)) { in accumulateConstantOffset() local 38 const StructLayout *SL = DL.getStructLayout(STy); in accumulateConstantOffset()
|
/external/llvm/lib/Target/ |
D | Target.cpp | 133 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset() local 134 return unwrap(TD)->getStructLayout(STy)->getElementContainingOffset(Offset); in LLVMElementAtOffset() 139 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement() local 140 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element); in LLVMOffsetOfElement()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ |
D | Target.cpp | 133 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset() local 134 return unwrap(TD)->getStructLayout(STy)->getElementContainingOffset(Offset); in LLVMElementAtOffset() 139 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement() local 140 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element); in LLVMOffsetOfElement()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/CodeGen/ |
D | LowLevelTypeTest.cpp | 67 const LLT STy = LLT::scalar(S); in TEST() local 72 const LLT VSTy = LLT::vector(Elts, STy); in TEST() 77 EXPECT_EQ(STy, VTy.getElementType()); in TEST() 97 EXPECT_NE(VTy, STy); in TEST()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | Type.cpp | 104 if (auto *STy = dyn_cast<StructType>(this)) { in isEmptyTy() local 105 unsigned NumElements = STy->getNumElements(); in isEmptyTy() 107 if (!STy->getElementType(i)->isEmptyTy()) in isEmptyTy() 518 if (auto *STy = dyn_cast<StructType>(this)) { in getTypeAtIndex() local 522 return STy->getElementType(Idx); in getTypeAtIndex() 529 if (auto *STy = dyn_cast<StructType>(this)) { in getTypeAtIndex() local 531 return STy->getElementType(Idx); in getTypeAtIndex() 538 if (auto *STy = dyn_cast<StructType>(this)) { in indexValid() local 547 return CU && CU->getZExtValue() < STy->getNumElements(); in indexValid() 555 if (auto *STy = dyn_cast<StructType>(this)) in indexValid() local [all …]
|
D | ConstantFold.cpp | 118 if (StructType *STy = dyn_cast<StructType>(ElTy)) { in FoldBitCast() local 119 if (STy->getNumElements() == 0) break; in FoldBitCast() 120 ElTy = STy->getElementType(0); in FoldBitCast() 122 } else if (SequentialType *STy = in FoldBitCast() local 124 ElTy = STy->getElementType(); in FoldBitCast() 358 if (StructType *STy = dyn_cast<StructType>(Ty)) in getFoldedSizeOf() local 359 if (!STy->isPacked()) { in getFoldedSizeOf() 360 unsigned NumElems = STy->getNumElements(); in getFoldedSizeOf() 366 getFoldedSizeOf(STy->getElementType(0), DestTy, true); in getFoldedSizeOf() 370 getFoldedSizeOf(STy->getElementType(i), DestTy, true)) { in getFoldedSizeOf() [all …]
|
D | TypeFinder.cpp | 104 if (StructType *STy = dyn_cast<StructType>(Ty)) in incorporateType() local 105 if (!OnlyNamed || STy->hasName()) in incorporateType() 106 StructTypes.push_back(STy); in incorporateType()
|
D | Operator.cpp | 50 if (StructType *STy = GTI.getStructTypeOrNull()) { in accumulateConstantOffset() local 52 const StructLayout *SL = DL.getStructLayout(STy); in accumulateConstantOffset()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | SCCP.cpp | 283 if (auto *STy = dyn_cast<StructType>(F->getReturnType())) { in AddTrackedFunction() local 285 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in AddTrackedFunction() 334 auto *STy = dyn_cast<StructType>(V->getType()); in getStructLatticeValueFor() local 335 assert(STy && "getStructLatticeValueFor() can be called only on structs"); in getStructLatticeValueFor() 336 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in getStructLatticeValueFor() 379 if (auto *STy = dyn_cast<StructType>(V->getType())) in markOverdefined() local 380 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in markOverdefined() 389 bool isStructLatticeConstant(Function *F, StructType *STy) { in isStructLatticeConstant() argument 390 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in isStructLatticeConstant() 797 if (auto *STy = dyn_cast<StructType>(ResultOp->getType())) in visitReturnInst() local [all …]
|
/external/llvm/lib/Linker/ |
D | IRMover.cpp | 68 void finishType(StructType *DTy, StructType *STy, ArrayRef<Type *> ETypes); 99 if (auto *STy = dyn_cast<StructType>(Ty)) in addTypeMapping() local 100 if (STy->hasName()) in addTypeMapping() 101 STy->setName(""); in addTypeMapping() 212 void TypeMapTy::finishType(StructType *DTy, StructType *STy, in finishType() argument 214 DTy->setBody(ETypes, STy->isPacked()); in finishType() 217 if (STy->hasName()) { in finishType() 218 SmallString<16> TmpName = STy->getName(); in finishType() 219 STy->setName(""); in finishType() 276 auto *STy = cast<StructType>(Ty); in get() local [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | GetElementPtrTypeIterator.h | 79 if (auto *STy = dyn_cast<SequentialType>(Ty)) { variable 80 CurTy = STy->getElementType(); 81 NumElements = STy->getNumElements();
|
/external/llvm/lib/Transforms/Scalar/ |
D | SCCP.cpp | 245 if (StructType *STy = dyn_cast<StructType>(F->getReturnType())) { in AddTrackedFunction() local 247 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in AddTrackedFunction() 275 StructType *STy = dyn_cast<StructType>(V->getType()); in getStructLatticeValueFor() local 276 assert(STy && "getStructLatticeValueFor() can be called only on structs"); in getStructLatticeValueFor() 277 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) { in getStructLatticeValueFor() 311 if (StructType *STy = dyn_cast<StructType>(V->getType())) in markAnythingOverdefined() local 312 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in markAnythingOverdefined() 750 if (StructType *STy = dyn_cast<StructType>(ResultOp->getType())) in visitReturnInst() local 752 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) in visitReturnInst() 809 StructType *STy = dyn_cast<StructType>(IVI.getType()); in visitInsertValueInst() local [all …]
|