Searched refs:STy (Results 1 - 25 of 55) sorted by relevance

123

/macosx-10.9.5/llvmCore-3425.0.33/lib/Target/
H A DTarget.cpp96 StructType *STy = unwrap<StructType>(StructTy); local
97 return unwrap(TD)->getStructLayout(STy)->getElementContainingOffset(Offset);
102 StructType *STy = unwrap<StructType>(StructTy); local
103 return unwrap(TD)->getStructLayout(STy)->getElementOffset(Element);
H A DTargetData.cpp405 StructLayout *&operator[](StructType *STy) {
406 return LayoutInfo[STy];
609 if (StructType *STy = dyn_cast<StructType>(*TI)) {
616 const StructLayout *Layout = getStructLayout(STy);
622 Ty = STy->getElementType(FieldNo);
/macosx-10.9.5/llvmCore-3425.0.33/lib/Transforms/Utils/
H A DMetaRenamer.cpp88 StructType *STy = StructTypes[i]; local
89 if (STy->isLiteral() || STy->getName().empty()) continue;
92 STy->setName((Twine("struct.") + metaNames[prng.rand() %
H A DAddrModeMatcher.cpp227 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
228 const StructLayout *SL = TD->getStructLayout(STy);
/macosx-10.9.5/llvmCore-3425.0.33/lib/Transforms/IPO/
H A DIPConstantPropagation.cpp170 StructType *STy = dyn_cast<StructType>(F.getReturnType()); local
171 if (STy)
172 for (unsigned i = 0, e = STy->getNumElements(); i < e; ++i)
173 RetVals.push_back(UndefValue::get(STy->getElementType(i)));
188 if (!STy)
238 if (STy == 0) {
H A DArgumentPromotion.cpp163 if (StructType *STy = dyn_cast<StructType>(AgTy)) {
164 if (maxElements > 0 && STy->getNumElements() > maxElements) {
173 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) {
174 if (!STy->getElementType(i)->isSingleValueType()) {
193 if (StructType *STy = dyn_cast<StructType>(AgTy)) {
195 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) {
196 if (STy->getElementType(i) == PtrArg->getType()) {
530 StructType *STy = cast<StructType>(AgTy); local
531 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i)
532 Params.push_back(STy
654 StructType *STy = cast<StructType>(AgTy); local
779 StructType *STy = cast<StructType>(AgTy); local
[all...]
H A DStripSymbols.cpp183 StructType *STy = StructTypes[i]; local
184 if (STy->isLiteral() || STy->getName().empty()) continue;
186 if (PreserveDbgInfo && STy->getName().startswith("llvm.dbg"))
189 STy->setName("");
H A DDeadArgumentElimination.cpp347 else if (StructType *STy = dyn_cast<StructType>(F->getReturnType()))
348 return STy->getNumElements();
494 Type *STy = dyn_cast<StructType>(F.getReturnType()); local
518 if (STy) {
672 StructType *STy = dyn_cast<StructType>(RetTy); local
673 if (STy)
678 RetTypes.push_back(STy->getElementType(i));
703 NRetTy = StructType::get(STy->getContext(), RetTypes, STy->isPacked());
H A DGlobalOpt.cpp324 SequentialType *STy = cast<SequentialType>(Ty); local
325 Types.push_back(STy->getElementType());
329 StructType *STy = cast<StructType>(Ty); local
330 if (STy->isOpaque()) return true;
331 for (StructType::element_iterator I = STy->element_begin(),
332 E = STy->element_end(); I != E; ++I) {
676 if (StructType *STy = dyn_cast<StructType>(Ty)) {
677 NewGlobals.reserve(STy->getNumElements());
678 const StructLayout &Layout = *TD.getStructLayout(STy);
679 for (unsigned i = 0, e = STy
1475 StructType *STy = cast<StructType>(MAT); local
[all...]
/macosx-10.9.5/llvmCore-3425.0.33/lib/VMCore/
H A DTypeFinder.cpp99 if (StructType *STy = dyn_cast<StructType>(Ty))
100 if (!OnlyNamed || STy->hasName())
101 StructTypes.push_back(STy);
H A DInlineAsm.cpp286 StructType *STy = dyn_cast<StructType>(Ty->getReturnType()); local
287 if (STy == 0 || STy->getNumElements() != NumOutputs)
H A DType.cpp122 const StructType *STy = dyn_cast<StructType>(this); local
123 if (STy) {
124 unsigned NumElements = STy->getNumElements();
126 if (!STy->getElementType(i)->isEmptyTy())
649 if (StructType *STy = dyn_cast<StructType>(this)) {
652 return STy->getElementType(Idx);
658 if (StructType *STy = dyn_cast<StructType>(this)) {
660 return STy->getElementType(Idx);
666 if (const StructType *STy = dyn_cast<StructType>(this)) {
670 return CU->getZExtValue() < STy
[all...]
H A DConstantFold.cpp112 if (StructType *STy = dyn_cast<StructType>(ElTy)) {
113 if (STy->getNumElements() == 0) break;
114 ElTy = STy->getElementType(0);
116 } else if (SequentialType *STy =
119 ElTy = STy->getElementType();
340 if (StructType *STy = dyn_cast<StructType>(Ty))
341 if (!STy->isPacked()) {
342 unsigned NumElems = STy->getNumElements();
348 getFoldedSizeOf(STy->getElementType(0), DestTy, true);
352 getFoldedSizeOf(STy
[all...]
H A DAsmWriter.cpp195 StructType *STy = *I; local
198 if (STy->isLiteral())
201 if (STy->getName().empty())
202 NumberedTypes[STy] = NextNumber++;
204 *NextToUse++ = STy;
247 StructType *STy = cast<StructType>(Ty); local
249 if (STy->isLiteral())
250 return printStructBody(STy, OS);
252 if (!STy->getName().empty())
253 return PrintLLVMName(OS, STy
259 OS << "%\\"type " << STy << '\\"'; local
290 printStructBody(StructType *STy, raw_ostream &OS) argument
[all...]
/macosx-10.9.5/llvmCore-3425.0.33/lib/CodeGen/
H A DAnalysis.cpp44 if (StructType *STy = dyn_cast<StructType>(Ty)) {
45 for (StructType::element_iterator EB = STy->element_begin(),
47 EE = STy->element_end();
81 if (StructType *STy = dyn_cast<StructType>(Ty)) {
82 const StructLayout *SL = TLI.getTargetData()->getStructLayout(STy);
83 for (StructType::element_iterator EB = STy->element_begin(),
85 EE = STy->element_end();
H A DShadowStackGC.cpp230 StructType *STy = StructType::create(EltTys, "gc_map."+utostr(NumMeta)); local
232 Constant *FrameMap = ConstantStruct::get(STy, DescriptorElts);
/macosx-10.9.5/llvmCore-3425.0.33/include/llvm/Transforms/Utils/
H A DLocal.h200 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
201 Size = TD.getStructLayout(STy)->getElementOffset(OpC->getZExtValue());
/macosx-10.9.5/llvmCore-3425.0.33/lib/Transforms/Scalar/
H A DSCCP.cpp240 if (StructType *STy = dyn_cast<StructType>(F->getReturnType())) {
242 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i)
301 if (StructType *STy = dyn_cast<StructType>(V->getType()))
302 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i)
734 if (StructType *STy = dyn_cast<StructType>(ResultOp->getType()))
736 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i)
787 StructType *STy = dyn_cast<StructType>(IVI.getType()); local
788 if (STy == 0)
800 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) {
1145 if (StructType *STy
[all...]
H A DSROA.cpp425 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
427 const StructLayout *SL = TD.getStructLayout(STy);
1364 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
1366 const StructLayout *SL = TD.getStructLayout(STy);
1430 } else if (StructType *STy = dyn_cast<StructType>(ElementTy)) {
1431 ElementTy = *STy->element_begin();
1490 StructType *STy = dyn_cast<StructType>(Ty); local
1491 if (!STy)
1494 const StructLayout *SL = TD.getStructLayout(STy);
1500 Type *ElementTy = STy
2909 StructType *STy = dyn_cast<StructType>(Ty); local
[all...]
/macosx-10.9.5/llvmCore-3425.0.33/lib/Analysis/
H A DScalarEvolutionExpander.cpp456 while (StructType *STy = dyn_cast<StructType>(ElTy)) {
459 if (STy->getNumElements() == 0) break;
466 const StructLayout &SL = *SE.TD->getStructLayout(STy);
472 ElTy = STy->getTypeAtIndex(ElIdx);
486 if (U->isOffsetOf(CTy, FieldNo) && CTy == STy) {
489 STy->getTypeAtIndex(cast<ConstantInt>(FieldNo)->getZExtValue());
501 ElTy = STy->getTypeAtIndex(0u);
1159 Type *STy = S->getType(); local
1160 Type *IntTy = SE.getEffectiveSCEVType(STy);
1203 Type *ExpandTy = PostLoopScale ? IntTy : STy;
[all...]
H A DValueTracking.cpp618 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
621 const StructLayout *SL = TD->getStructLayout(STy);
1424 llvm::StructType *STy = llvm::dyn_cast<llvm::StructType>(IndexedType); local
1425 if (STy) {
1429 for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) {
1433 To = BuildSubAggregate(From, To, STy->getElementType(i), Idxs, IdxSkip,
1605 if (StructType *STy = dyn_cast<StructType>(*GTI)) {
1606 Offset += TD.getStructLayout(STy)->getElementOffset(OpC->getZExtValue());
/macosx-10.9.5/llvmCore-3425.0.33/tools/bugpoint/
H A DExtractFunction.cpp210 StructType *STy = local
217 ArrayElts.push_back(ConstantStruct::get(STy, Elts));
/macosx-10.9.5/llvmCore-3425.0.33/lib/Linker/
H A DLinkModules.cpp226 // If DstSTy has no name or has a longer name than STy, then viciously steal
227 // STy's name.
331 StructType *STy = cast<StructType>(Ty); local
334 if (STy->isOpaque())
335 return *Entry = STy;
339 SrcDefinitionsToResolve.push_back(STy);
340 StructType *DTy = StructType::create(STy->getContext());
/macosx-10.9.5/llvmCore-3425.0.33/lib/Bitcode/Writer/
H A DValueEnumerator.cpp362 if (StructType *STy = dyn_cast<StructType>(Ty))
363 if (!STy->isLiteral())
/macosx-10.9.5/llvmCore-3425.0.33/lib/ExecutionEngine/JIT/
H A DJIT.cpp497 FunctionType *STy=FunctionType::get(RetTy, false); local
498 Function *Stub = Function::Create(STy, Function::InternalLinkage, "",

Completed in 200 milliseconds

123