Home
last modified time | relevance | path

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

/external/llvm/lib/Target/
DTarget.cpp119 unsigned LLVMElementAtOffset(LLVMTargetDataRef TD, LLVMTypeRef StructTy, in LLVMElementAtOffset() argument
121 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset()
125 unsigned long long LLVMOffsetOfElement(LLVMTargetDataRef TD, LLVMTypeRef StructTy, in LLVMOffsetOfElement() argument
127 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement()
/external/llvm/include/llvm-c/
DTarget.h270 unsigned LLVMElementAtOffset(LLVMTargetDataRef TD, LLVMTypeRef StructTy,
276 LLVMTypeRef StructTy, unsigned Element);
DCore.h884 void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes,
892 unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy);
904 void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest);
911 LLVMTypeRef LLVMStructGetTypeAtIndex(LLVMTypeRef StructTy, unsigned i);
918 LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy);
925 LLVMBool LLVMIsOpaqueStruct(LLVMTypeRef StructTy);
1558 LLVMValueRef LLVMConstNamedStruct(LLVMTypeRef StructTy,
/external/llvm/lib/Transforms/Utils/
DCodeExtractor.cpp336 StructType *StructTy; in constructFunction() local
338 StructTy = StructType::get(M->getContext(), paramTy); in constructFunction()
340 paramTy.push_back(PointerType::getUnqual(StructTy)); in constructFunction()
369 StructTy, &*AI, Idx, "gep_" + inputs[i]->getName(), TI); in constructFunction()
/external/llvm/lib/Transforms/IPO/
DArgumentPromotion.cpp153 StructType *StructTy = cast<StructType>(type); in isDenselyPacked() local
154 const StructLayout *Layout = DL.getStructLayout(StructTy); in isDenselyPacked()
156 for (unsigned i = 0, E = StructTy->getNumElements(); i < E; ++i) { in isDenselyPacked()
157 Type *ElTy = StructTy->getElementType(i); in isDenselyPacked()
/external/llvm/lib/IR/
DCore.cpp452 void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes, in LLVMStructSetBody() argument
455 unwrap<StructType>(StructTy)->setBody(Tys, Packed != 0); in LLVMStructSetBody()
458 unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy) { in LLVMCountStructElementTypes() argument
459 return unwrap<StructType>(StructTy)->getNumElements(); in LLVMCountStructElementTypes()
462 void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest) { in LLVMGetStructElementTypes() argument
463 StructType *Ty = unwrap<StructType>(StructTy); in LLVMGetStructElementTypes()
469 LLVMTypeRef LLVMStructGetTypeAtIndex(LLVMTypeRef StructTy, unsigned i) { in LLVMStructGetTypeAtIndex() argument
470 StructType *Ty = unwrap<StructType>(StructTy); in LLVMStructGetTypeAtIndex()
474 LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy) { in LLVMIsPackedStruct() argument
475 return unwrap<StructType>(StructTy)->isPacked(); in LLVMIsPackedStruct()
[all …]
/external/llvm/lib/Transforms/Scalar/
DMemCpyOptimizer.cpp640 Type *StructTy = cast<PointerType>(A->getType())->getElementType(); in performCallSlotOptzn() local
641 if (!StructTy->isSized()) { in performCallSlotOptzn()
648 uint64_t destSize = DL.getTypeAllocSize(StructTy); in performCallSlotOptzn()
/external/llvm/bindings/ocaml/llvm/
Dllvm_ocaml.c383 CAMLprim value llvm_struct_element_types(LLVMTypeRef StructTy) { in llvm_struct_element_types() argument
384 value Tys = alloc(LLVMCountStructElementTypes(StructTy), 0); in llvm_struct_element_types()
385 LLVMGetStructElementTypes(StructTy, (LLVMTypeRef *) Tys); in llvm_struct_element_types()
390 CAMLprim value llvm_is_packed(LLVMTypeRef StructTy) { in llvm_is_packed() argument
391 return Val_bool(LLVMIsPackedStruct(StructTy)); in llvm_is_packed()
395 CAMLprim value llvm_is_opaque(LLVMTypeRef StructTy) { in llvm_is_opaque() argument
396 return Val_bool(LLVMIsOpaqueStruct(StructTy)); in llvm_is_opaque()