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.h978 void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes,
986 unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy);
998 void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest);
1005 LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy);
1012 LLVMBool LLVMIsOpaqueStruct(LLVMTypeRef StructTy);
1640 LLVMValueRef LLVMConstNamedStruct(LLVMTypeRef StructTy,
/external/llvm/lib/Transforms/Utils/
DCodeExtractor.cpp335 StructType *StructTy; in constructFunction() local
337 StructTy = StructType::get(M->getContext(), paramTy); in constructFunction()
339 paramTy.push_back(PointerType::getUnqual(StructTy)); in constructFunction()
368 StructTy, AI, Idx, "gep_" + inputs[i]->getName(), TI); in constructFunction()
/external/llvm/lib/Transforms/IPO/
DArgumentPromotion.cpp147 StructType *StructTy = cast<StructType>(type); in isDenselyPacked() local
148 const StructLayout *Layout = DL.getStructLayout(StructTy); in isDenselyPacked()
150 for (unsigned i = 0, E = StructTy->getNumElements(); i < E; ++i) { in isDenselyPacked()
151 Type *ElTy = StructTy->getElementType(i); in isDenselyPacked()
/external/llvm/lib/IR/
DCore.cpp441 void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes, in LLVMStructSetBody() argument
444 unwrap<StructType>(StructTy)->setBody(Tys, Packed != 0); in LLVMStructSetBody()
447 unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy) { in LLVMCountStructElementTypes() argument
448 return unwrap<StructType>(StructTy)->getNumElements(); in LLVMCountStructElementTypes()
451 void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest) { in LLVMGetStructElementTypes() argument
452 StructType *Ty = unwrap<StructType>(StructTy); in LLVMGetStructElementTypes()
458 LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy) { in LLVMIsPackedStruct() argument
459 return unwrap<StructType>(StructTy)->isPacked(); in LLVMIsPackedStruct()
462 LLVMBool LLVMIsOpaqueStruct(LLVMTypeRef StructTy) { in LLVMIsOpaqueStruct() argument
463 return unwrap<StructType>(StructTy)->isOpaque(); in LLVMIsOpaqueStruct()
[all …]
/external/llvm/lib/Transforms/Scalar/
DMemCpyOptimizer.cpp638 Type *StructTy = cast<PointerType>(A->getType())->getElementType(); in performCallSlotOptzn() local
639 if (!StructTy->isSized()) { in performCallSlotOptzn()
646 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()