/external/llvm/lib/Transforms/Instrumentation/ |
D | EfficiencySanitizer.cpp | 165 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/llvm-project/llvm/test/Transforms/SLPVectorizer/X86/ |
D | pr42022.ll | 53 %StructTy = type { float, float} 55 define [2 x %StructTy] @ArrayOfStruct(float *%Ptr) { 72 ; CHECK-NEXT: [[RET0:%.*]] = insertvalue [2 x %StructTy] undef, [[STRUCTTY]] %StructIn1, 0 73 ; CHECK-NEXT: [[RET1:%.*]] = insertvalue [2 x %StructTy] [[RET0]], [[STRUCTTY]] %StructIn3, 1 74 ; CHECK-NEXT: ret [2 x %StructTy] [[RET1]] 90 %StructIn0 = insertvalue %StructTy undef, float %Fadd0, 0 91 %StructIn1 = insertvalue %StructTy %StructIn0, float %Fadd1, 1 93 %StructIn2 = insertvalue %StructTy undef, float %Fadd2, 0 94 %StructIn3 = insertvalue %StructTy %StructIn2, float %Fadd3, 1 96 %Ret0 = insertvalue [2 x %StructTy] undef, %StructTy %StructIn1, 0 [all …]
|
/external/llvm-project/clang/lib/CodeGen/ |
D | PatternInit.cpp | 78 auto *StructTy = cast<llvm::StructType>(Ty); in initializationPatternFor() local 79 llvm::SmallVector<llvm::Constant *, 8> Struct(StructTy->getNumElements()); in initializationPatternFor() 81 Struct[El] = initializationPatternFor(CGM, StructTy->getElementType(El)); in initializationPatternFor() 82 return llvm::ConstantStruct::get(StructTy, Struct); in initializationPatternFor()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ |
D | Target.cpp | 130 unsigned LLVMElementAtOffset(LLVMTargetDataRef TD, LLVMTypeRef StructTy, in LLVMElementAtOffset() argument 132 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset() 136 unsigned long long LLVMOffsetOfElement(LLVMTargetDataRef TD, LLVMTypeRef StructTy, in LLVMOffsetOfElement() argument 138 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement()
|
/external/llvm/lib/Target/ |
D | Target.cpp | 131 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-project/llvm/lib/Target/ |
D | Target.cpp | 132 unsigned LLVMElementAtOffset(LLVMTargetDataRef TD, LLVMTypeRef StructTy, in LLVMElementAtOffset() argument 134 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset() 138 unsigned long long LLVMOffsetOfElement(LLVMTargetDataRef TD, LLVMTypeRef StructTy, in LLVMOffsetOfElement() argument 140 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement()
|
/external/llvm-project/llvm/unittests/Analysis/ |
D | TargetLibraryInfoTest.cpp | 64 auto *StructTy = StructType::getTypeByName(Context, "foo"); in TEST_F() local 65 auto *InvalidFTy = FunctionType::get(StructTy, /*isVarArg=*/false); in TEST_F()
|
/external/llvm/include/llvm-c/ |
D | Target.h | 283 unsigned LLVMElementAtOffset(LLVMTargetDataRef TD, LLVMTypeRef StructTy, 289 LLVMTypeRef StructTy, unsigned Element);
|
D | Core.h | 1022 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-10.0/llvm/include/llvm-c/ |
D | Target.h | 278 unsigned LLVMElementAtOffset(LLVMTargetDataRef TD, LLVMTypeRef StructTy, 284 LLVMTypeRef StructTy, unsigned Element);
|
D | Core.h | 1303 void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes, 1311 unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy); 1323 void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest); 1330 LLVMTypeRef LLVMStructGetTypeAtIndex(LLVMTypeRef StructTy, unsigned i); 1337 LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy); 1344 LLVMBool LLVMIsOpaqueStruct(LLVMTypeRef StructTy); 1351 LLVMBool LLVMIsLiteralStruct(LLVMTypeRef StructTy); 2029 LLVMValueRef LLVMConstNamedStruct(LLVMTypeRef StructTy,
|
/external/llvm-project/llvm/include/llvm-c/ |
D | Target.h | 278 unsigned LLVMElementAtOffset(LLVMTargetDataRef TD, LLVMTypeRef StructTy, 284 LLVMTypeRef StructTy, unsigned Element);
|
D | Core.h | 1315 void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes, 1323 unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy); 1335 void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest); 1342 LLVMTypeRef LLVMStructGetTypeAtIndex(LLVMTypeRef StructTy, unsigned i); 1349 LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy); 1356 LLVMBool LLVMIsOpaqueStruct(LLVMTypeRef StructTy); 1363 LLVMBool LLVMIsLiteralStruct(LLVMTypeRef StructTy); 2066 LLVMValueRef LLVMConstNamedStruct(LLVMTypeRef StructTy,
|
/external/llvm-project/llvm/lib/Transforms/Coroutines/ |
D | Coroutines.cpp | 673 auto *StructTy = dyn_cast<StructType>( in checkAsyncFuncPointer() local 675 if (StructTy->isOpaque() || !StructTy->isPacked() || in checkAsyncFuncPointer() 676 StructTy->getNumElements() != 2 || in checkAsyncFuncPointer() 677 !StructTy->getElementType(0)->isIntegerTy(32) || in checkAsyncFuncPointer() 678 !StructTy->getElementType(1)->isIntegerTy(32)) in checkAsyncFuncPointer()
|
/external/llvm-project/clang/include/clang/CodeGen/ |
D | ConstantInitBuilder.h | 464 llvm::StructType *StructTy; 473 : super(builder, parent), StructTy(structTy) { in ConstantStructBuilderTemplateBase() 486 StructTy = structTy; in suggestType() 494 return AggregateBuilderBase::finishStruct(StructTy); in finishImpl()
|
/external/llvm/lib/Transforms/Utils/ |
D | CodeExtractor.cpp | 325 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/llvm/lib/Transforms/IPO/ |
D | ArgumentPromotion.cpp | 184 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-project/llvm/lib/Transforms/IPO/ |
D | ArgumentPromotion.cpp | 794 StructType *StructTy = cast<StructType>(type); in isDenselyPacked() local 795 const StructLayout *Layout = DL.getStructLayout(StructTy); in isDenselyPacked() 797 for (unsigned i = 0, E = StructTy->getNumElements(); i < E; ++i) { in isDenselyPacked() 798 Type *ElTy = StructTy->getElementType(i); in isDenselyPacked()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | ArgumentPromotion.cpp | 796 StructType *StructTy = cast<StructType>(type); in isDenselyPacked() local 797 const StructLayout *Layout = DL.getStructLayout(StructTy); in isDenselyPacked() 799 for (unsigned i = 0, E = StructTy->getNumElements(); i < E; ++i) { in isDenselyPacked() 800 Type *ElTy = StructTy->getElementType(i); in isDenselyPacked()
|
/external/llvm/lib/IR/ |
D | Core.cpp | 532 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/llvm-project/llvm/bindings/ocaml/llvm/ |
D | llvm_ocaml.c | 497 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() 514 CAMLprim value llvm_is_literal(LLVMTypeRef StructTy) { in llvm_is_literal() argument 515 return Val_bool(LLVMIsLiteralStruct(StructTy)); in llvm_is_literal()
|
/external/llvm-project/llvm/lib/IR/ |
D | Core.cpp | 707 void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes, in LLVMStructSetBody() argument 710 unwrap<StructType>(StructTy)->setBody(Tys, Packed != 0); in LLVMStructSetBody() 713 unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy) { in LLVMCountStructElementTypes() argument 714 return unwrap<StructType>(StructTy)->getNumElements(); in LLVMCountStructElementTypes() 717 void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest) { in LLVMGetStructElementTypes() argument 718 StructType *Ty = unwrap<StructType>(StructTy); in LLVMGetStructElementTypes() 724 LLVMTypeRef LLVMStructGetTypeAtIndex(LLVMTypeRef StructTy, unsigned i) { in LLVMStructGetTypeAtIndex() argument 725 StructType *Ty = unwrap<StructType>(StructTy); in LLVMStructGetTypeAtIndex() 729 LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy) { in LLVMIsPackedStruct() argument 730 return unwrap<StructType>(StructTy)->isPacked(); in LLVMIsPackedStruct() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Core.cpp | 695 void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes, in LLVMStructSetBody() argument 698 unwrap<StructType>(StructTy)->setBody(Tys, Packed != 0); in LLVMStructSetBody() 701 unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy) { in LLVMCountStructElementTypes() argument 702 return unwrap<StructType>(StructTy)->getNumElements(); in LLVMCountStructElementTypes() 705 void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest) { in LLVMGetStructElementTypes() argument 706 StructType *Ty = unwrap<StructType>(StructTy); in LLVMGetStructElementTypes() 712 LLVMTypeRef LLVMStructGetTypeAtIndex(LLVMTypeRef StructTy, unsigned i) { in LLVMStructGetTypeAtIndex() argument 713 StructType *Ty = unwrap<StructType>(StructTy); in LLVMStructGetTypeAtIndex() 717 LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy) { in LLVMIsPackedStruct() argument 718 return unwrap<StructType>(StructTy)->isPacked(); in LLVMIsPackedStruct() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | CodeExtractor.cpp | 808 StructType *StructTy = nullptr; in constructFunction() local 810 StructTy = StructType::get(M->getContext(), paramTy); in constructFunction() 812 paramTy.push_back(PointerType::getUnqual(StructTy)); in constructFunction() 938 StructTy, &*AI, Idx, "gep_" + inputs[i]->getName(), TI); in constructFunction() 939 RewriteVal = new LoadInst(StructTy->getElementType(i), GEP, in constructFunction()
|
/external/llvm-project/llvm/unittests/FuzzMutate/ |
D | OperationsTest.cpp | 336 Type *StructTy = StructType::create(Ctx, {Int8PtrTy, Int32Ty}); in TEST() local 346 Constant *SVal = UndefValue::get(StructTy); in TEST()
|