Home
last modified time | relevance | path

Searched refs:StructTy (Results 1 – 25 of 32) sorted by relevance

12

/external/llvm/lib/Transforms/Instrumentation/
DEfficiencySanitizer.cpp165 bool shouldIgnoreStructType(StructType *StructTy);
167 StructType *StructTy, SmallString<MaxStructCounterNameSize> &NameStr);
169 Module &M, const DataLayout &DL, StructType *StructTy,
179 bool insertCounterUpdate(Instruction *I, StructType *StructTy,
181 unsigned getFieldCounterIdx(StructType *StructTy) { in getFieldCounterIdx() argument
184 unsigned getArrayCounterIdx(StructType *StructTy) { in getArrayCounterIdx() argument
185 return StructTy->getNumElements(); in getArrayCounterIdx()
187 unsigned getStructCounterSize(StructType *StructTy) { in getStructCounterSize() argument
191 return (StructTy->getNumElements()/*field*/ + 1/*array*/); in getStructCounterSize()
289 bool EfficiencySanitizer::shouldIgnoreStructType(StructType *StructTy) { in shouldIgnoreStructType() argument
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Instrumentation/
DEfficiencySanitizer.cpp176 bool shouldIgnoreStructType(StructType *StructTy);
178 StructType *StructTy, SmallString<MaxStructCounterNameSize> &NameStr);
180 Module &M, const DataLayout &DL, StructType *StructTy,
190 bool insertCounterUpdate(Instruction *I, StructType *StructTy,
192 unsigned getFieldCounterIdx(StructType *StructTy) { in getFieldCounterIdx() argument
195 unsigned getArrayCounterIdx(StructType *StructTy) { in getArrayCounterIdx() argument
196 return StructTy->getNumElements(); in getArrayCounterIdx()
198 unsigned getStructCounterSize(StructType *StructTy) { in getStructCounterSize() argument
202 return (StructTy->getNumElements()/*field*/ + 1/*array*/); in getStructCounterSize()
301 bool EfficiencySanitizer::shouldIgnoreStructType(StructType *StructTy) { in shouldIgnoreStructType() argument
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/
DTarget.cpp94 unsigned LLVMElementAtOffset(LLVMTargetDataRef TD, LLVMTypeRef StructTy, in LLVMElementAtOffset() argument
96 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset()
100 unsigned long long LLVMOffsetOfElement(LLVMTargetDataRef TD, LLVMTypeRef StructTy, in LLVMOffsetOfElement() argument
102 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/
DTarget.cpp131 unsigned LLVMElementAtOffset(LLVMTargetDataRef TD, LLVMTypeRef StructTy, in LLVMElementAtOffset() argument
133 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset()
137 unsigned long long LLVMOffsetOfElement(LLVMTargetDataRef TD, LLVMTypeRef StructTy, in LLVMOffsetOfElement() argument
139 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement()
/external/llvm/lib/Target/
DTarget.cpp131 unsigned LLVMElementAtOffset(LLVMTargetDataRef TD, LLVMTypeRef StructTy, in LLVMElementAtOffset() argument
133 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset()
137 unsigned long long LLVMOffsetOfElement(LLVMTargetDataRef TD, LLVMTypeRef StructTy, in LLVMOffsetOfElement() argument
139 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/
DTargetLibraryInfoTest.cpp65 auto *StructTy = M->getTypeByName("foo"); in TEST_F() local
66 auto *InvalidFTy = FunctionType::get(StructTy, /*isVarArg=*/false); in TEST_F()
/external/swiftshader/third_party/LLVM/include/llvm-c/
DTarget.h148 unsigned LLVMElementAtOffset(LLVMTargetDataRef, LLVMTypeRef StructTy,
153 unsigned long long LLVMOffsetOfElement(LLVMTargetDataRef, LLVMTypeRef StructTy,
DCore.h413 void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes,
416 unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy);
417 void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest);
418 LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy);
419 LLVMBool LLVMIsOpaqueStruct(LLVMTypeRef StructTy);
601 LLVMValueRef LLVMConstNamedStruct(LLVMTypeRef StructTy,
/external/llvm/include/llvm-c/
DTarget.h283 unsigned LLVMElementAtOffset(LLVMTargetDataRef TD, LLVMTypeRef StructTy,
289 LLVMTypeRef StructTy, unsigned Element);
DCore.h1022 void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes,
1030 unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy);
1042 void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest);
1049 LLVMTypeRef LLVMStructGetTypeAtIndex(LLVMTypeRef StructTy, unsigned i);
1056 LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy);
1063 LLVMBool LLVMIsOpaqueStruct(LLVMTypeRef StructTy);
1703 LLVMValueRef LLVMConstNamedStruct(LLVMTypeRef StructTy,
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm-c/
DTarget.h283 unsigned LLVMElementAtOffset(LLVMTargetDataRef TD, LLVMTypeRef StructTy,
289 LLVMTypeRef StructTy, unsigned Element);
DCore.h1181 void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes,
1189 unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy);
1201 void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest);
1208 LLVMTypeRef LLVMStructGetTypeAtIndex(LLVMTypeRef StructTy, unsigned i);
1215 LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy);
1222 LLVMBool LLVMIsOpaqueStruct(LLVMTypeRef StructTy);
1891 LLVMValueRef LLVMConstNamedStruct(LLVMTypeRef StructTy,
/external/llvm/lib/Transforms/Utils/
DCodeExtractor.cpp325 StructType *StructTy; in constructFunction() local
327 StructTy = StructType::get(M->getContext(), paramTy); in constructFunction()
329 paramTy.push_back(PointerType::getUnqual(StructTy)); in constructFunction()
358 StructTy, &*AI, Idx, "gep_" + inputs[i]->getName(), TI); in constructFunction()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DCore.cpp318 void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes, in LLVMStructSetBody() argument
321 unwrap<StructType>(StructTy)->setBody(Tys, Packed != 0); in LLVMStructSetBody()
324 unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy) { in LLVMCountStructElementTypes() argument
325 return unwrap<StructType>(StructTy)->getNumElements(); in LLVMCountStructElementTypes()
328 void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest) { in LLVMGetStructElementTypes() argument
329 StructType *Ty = unwrap<StructType>(StructTy); in LLVMGetStructElementTypes()
335 LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy) { in LLVMIsPackedStruct() argument
336 return unwrap<StructType>(StructTy)->isPacked(); in LLVMIsPackedStruct()
339 LLVMBool LLVMIsOpaqueStruct(LLVMTypeRef StructTy) { in LLVMIsOpaqueStruct() argument
340 return unwrap<StructType>(StructTy)->isOpaque(); in LLVMIsOpaqueStruct()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/IPO/
DArgumentPromotion.cpp760 StructType *StructTy = cast<StructType>(type); in isDenselyPacked() local
761 const StructLayout *Layout = DL.getStructLayout(StructTy); in isDenselyPacked()
763 for (unsigned i = 0, E = StructTy->getNumElements(); i < E; ++i) { in isDenselyPacked()
764 Type *ElTy = StructTy->getElementType(i); in isDenselyPacked()
/external/llvm/lib/Transforms/IPO/
DArgumentPromotion.cpp184 StructType *StructTy = cast<StructType>(type); in isDenselyPacked() local
185 const StructLayout *Layout = DL.getStructLayout(StructTy); in isDenselyPacked()
187 for (unsigned i = 0, E = StructTy->getNumElements(); i < E; ++i) { in isDenselyPacked()
188 Type *ElTy = StructTy->getElementType(i); in isDenselyPacked()
/external/llvm/lib/IR/
DCore.cpp532 void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes, in LLVMStructSetBody() argument
535 unwrap<StructType>(StructTy)->setBody(Tys, Packed != 0); in LLVMStructSetBody()
538 unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy) { in LLVMCountStructElementTypes() argument
539 return unwrap<StructType>(StructTy)->getNumElements(); in LLVMCountStructElementTypes()
542 void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest) { in LLVMGetStructElementTypes() argument
543 StructType *Ty = unwrap<StructType>(StructTy); in LLVMGetStructElementTypes()
549 LLVMTypeRef LLVMStructGetTypeAtIndex(LLVMTypeRef StructTy, unsigned i) { in LLVMStructGetTypeAtIndex() argument
550 StructType *Ty = unwrap<StructType>(StructTy); in LLVMStructGetTypeAtIndex()
554 LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy) { in LLVMIsPackedStruct() argument
555 return unwrap<StructType>(StructTy)->isPacked(); in LLVMIsPackedStruct()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DCodeExtractor.cpp662 StructType *StructTy; in constructFunction() local
664 StructTy = StructType::get(M->getContext(), paramTy); in constructFunction()
666 paramTy.push_back(PointerType::getUnqual(StructTy)); in constructFunction()
783 StructTy, &*AI, Idx, "gep_" + inputs[i]->getName(), TI); in constructFunction()
/external/swiftshader/third_party/LLVM/bindings/ocaml/llvm/
Dllvm_ocaml.c324 CAMLprim value llvm_struct_element_types(LLVMTypeRef StructTy) { in llvm_struct_element_types() argument
325 value Tys = alloc(LLVMCountStructElementTypes(StructTy), 0); in llvm_struct_element_types()
326 LLVMGetStructElementTypes(StructTy, (LLVMTypeRef *) Tys); in llvm_struct_element_types()
331 CAMLprim value llvm_is_packed(LLVMTypeRef StructTy) { in llvm_is_packed() argument
332 return Val_bool(LLVMIsPackedStruct(StructTy)); in llvm_is_packed()
336 CAMLprim value llvm_is_opaque(LLVMTypeRef StructTy) { in llvm_is_opaque() argument
337 return Val_bool(LLVMIsOpaqueStruct(StructTy)); in llvm_is_opaque()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DCore.cpp679 void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes, in LLVMStructSetBody() argument
682 unwrap<StructType>(StructTy)->setBody(Tys, Packed != 0); in LLVMStructSetBody()
685 unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy) { in LLVMCountStructElementTypes() argument
686 return unwrap<StructType>(StructTy)->getNumElements(); in LLVMCountStructElementTypes()
689 void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest) { in LLVMGetStructElementTypes() argument
690 StructType *Ty = unwrap<StructType>(StructTy); in LLVMGetStructElementTypes()
696 LLVMTypeRef LLVMStructGetTypeAtIndex(LLVMTypeRef StructTy, unsigned i) { in LLVMStructGetTypeAtIndex() argument
697 StructType *Ty = unwrap<StructType>(StructTy); in LLVMStructGetTypeAtIndex()
701 LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy) { in LLVMIsPackedStruct() argument
702 return unwrap<StructType>(StructTy)->isPacked(); in LLVMIsPackedStruct()
[all …]
/external/spirv-llvm/lib/SPIRV/
DSPIRVWriter.cpp416 if (auto *StructTy = dyn_cast<StructType>(Ty)) { in recursiveType() local
417 if (StructTy == ST) in recursiveType()
420 if (Seen.count(StructTy)) in recursiveType()
423 Seen.insert(StructTy); in recursiveType()
425 return find_if(StructTy->subtype_begin(), StructTy->subtype_end(), Run) != in recursiveType()
426 StructTy->subtype_end(); in recursiveType()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/FuzzMutate/
DOperationsTest.cpp337 Type *StructTy = StructType::create(Ctx, {Int8PtrTy, Int32Ty}); in TEST() local
347 Constant *SVal = UndefValue::get(StructTy); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/bindings/ocaml/llvm/
Dllvm_ocaml.c497 CAMLprim value llvm_struct_element_types(LLVMTypeRef StructTy) { in llvm_struct_element_types() argument
498 value Tys = alloc(LLVMCountStructElementTypes(StructTy), 0); in llvm_struct_element_types()
499 LLVMGetStructElementTypes(StructTy, (LLVMTypeRef *) Tys); in llvm_struct_element_types()
504 CAMLprim value llvm_is_packed(LLVMTypeRef StructTy) { in llvm_is_packed() argument
505 return Val_bool(LLVMIsPackedStruct(StructTy)); in llvm_is_packed()
509 CAMLprim value llvm_is_opaque(LLVMTypeRef StructTy) { in llvm_is_opaque() argument
510 return Val_bool(LLVMIsOpaqueStruct(StructTy)); in llvm_is_opaque()
/external/llvm/bindings/ocaml/llvm/
Dllvm_ocaml.c428 CAMLprim value llvm_struct_element_types(LLVMTypeRef StructTy) { in llvm_struct_element_types() argument
429 value Tys = alloc(LLVMCountStructElementTypes(StructTy), 0); in llvm_struct_element_types()
430 LLVMGetStructElementTypes(StructTy, (LLVMTypeRef *) Tys); in llvm_struct_element_types()
435 CAMLprim value llvm_is_packed(LLVMTypeRef StructTy) { in llvm_is_packed() argument
436 return Val_bool(LLVMIsPackedStruct(StructTy)); in llvm_is_packed()
440 CAMLprim value llvm_is_opaque(LLVMTypeRef StructTy) { in llvm_is_opaque() argument
441 return Val_bool(LLVMIsOpaqueStruct(StructTy)); in llvm_is_opaque()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DTargetTransformInfoImpl.h838 if (StructType* StructTy = dyn_cast<StructType>(DstTy)) in getInstructionLatency() local
839 DstTy = StructTy->getElementType(0); in getInstructionLatency()

12