Home
last modified time | relevance | path

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

/external/llvm/lib/Transforms/Utils/
DCtorUtils.cpp34 StructType *StructTy = in installGlobalCtors() local
46 CSVals[1] = Constant::getNullValue(StructTy->getElementType(1)); in installGlobalCtors()
49 size_t NumElts = StructTy->getNumElements(); in installGlobalCtors()
51 CSVals[2] = Constant::getNullValue(StructTy->getElementType(2)); in installGlobalCtors()
53 ConstantStruct::get(StructTy, makeArrayRef(CSVals, NumElts))); in installGlobalCtors()
58 ConstantArray::get(ArrayType::get(StructTy, CAList.size()), CAList); in installGlobalCtors()
/external/llvm/lib/Target/
DTarget.cpp122 unsigned LLVMElementAtOffset(LLVMTargetDataRef TD, LLVMTypeRef StructTy, in LLVMElementAtOffset() argument
124 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset()
128 unsigned long long LLVMOffsetOfElement(LLVMTargetDataRef TD, LLVMTypeRef StructTy, in LLVMOffsetOfElement() argument
130 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.h972 void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes,
980 unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy);
992 void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest);
999 LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy);
1006 LLVMBool LLVMIsOpaqueStruct(LLVMTypeRef StructTy);
1604 LLVMValueRef LLVMConstNamedStruct(LLVMTypeRef StructTy,
/external/llvm/lib/IR/
DCore.cpp439 void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes, in LLVMStructSetBody() argument
442 unwrap<StructType>(StructTy)->setBody(Tys, Packed != 0); in LLVMStructSetBody()
445 unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy) { in LLVMCountStructElementTypes() argument
446 return unwrap<StructType>(StructTy)->getNumElements(); in LLVMCountStructElementTypes()
449 void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest) { in LLVMGetStructElementTypes() argument
450 StructType *Ty = unwrap<StructType>(StructTy); in LLVMGetStructElementTypes()
456 LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy) { in LLVMIsPackedStruct() argument
457 return unwrap<StructType>(StructTy)->isPacked(); in LLVMIsPackedStruct()
460 LLVMBool LLVMIsOpaqueStruct(LLVMTypeRef StructTy) { in LLVMIsOpaqueStruct() argument
461 return unwrap<StructType>(StructTy)->isOpaque(); in LLVMIsOpaqueStruct()
[all …]
/external/llvm/bindings/ocaml/llvm/
Dllvm_ocaml.c381 CAMLprim value llvm_struct_element_types(LLVMTypeRef StructTy) { in llvm_struct_element_types() argument
382 value Tys = alloc(LLVMCountStructElementTypes(StructTy), 0); in llvm_struct_element_types()
383 LLVMGetStructElementTypes(StructTy, (LLVMTypeRef *) Tys); in llvm_struct_element_types()
388 CAMLprim value llvm_is_packed(LLVMTypeRef StructTy) { in llvm_is_packed() argument
389 return Val_bool(LLVMIsPackedStruct(StructTy)); in llvm_is_packed()
393 CAMLprim value llvm_is_opaque(LLVMTypeRef StructTy) { in llvm_is_opaque() argument
394 return Val_bool(LLVMIsOpaqueStruct(StructTy)); in llvm_is_opaque()
/external/llvm/lib/Transforms/Scalar/
DMemCpyOptimizer.cpp639 Type *StructTy = cast<PointerType>(A->getType())->getElementType(); in performCallSlotOptzn() local
640 if (!StructTy->isSized()) { in performCallSlotOptzn()
647 uint64_t destSize = DL->getTypeAllocSize(StructTy); in performCallSlotOptzn()