X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fauxiliary%2Fgallivm%2Flp_bld_type.h;h=df77ef2155130cd3341cbcf4fe10f29e646fe977;hb=e277d5c1f6b2c5a6d202561e67d2b6821a69ecc4;hp=4daa904e633c8e73457236e190c48c1964c5a6e9;hpb=2ccae040a458ad0f95ee46916e2ea467d5cf9d02;p=mesa.git diff --git a/src/gallium/auxiliary/gallivm/lp_bld_type.h b/src/gallium/auxiliary/gallivm/lp_bld_type.h index 4daa904e633..df77ef21551 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_type.h +++ b/src/gallium/auxiliary/gallivm/lp_bld_type.h @@ -37,9 +37,9 @@ #define LP_BLD_TYPE_H -#include +#include "pipe/p_compiler.h" +#include "gallivm/lp_bld.h" -#include /** @@ -128,6 +128,18 @@ struct lp_build_context */ struct lp_type type; + /** Same as lp_build_undef(type) */ + LLVMTypeRef elem_type; + + /** Same as lp_build_undef(type) */ + LLVMTypeRef vec_type; + + /** Same as lp_build_undef(type) */ + LLVMTypeRef int_elem_type; + + /** Same as lp_build_undef(type) */ + LLVMTypeRef int_vec_type; + /** Same as lp_build_undef(type) */ LLVMValueRef undef; @@ -316,6 +328,18 @@ struct lp_type lp_wider_type(struct lp_type type); +unsigned +lp_sizeof_llvm_type(LLVMTypeRef t); + + +const char * +lp_typekind_name(LLVMTypeKind t); + + +void +lp_dump_llvmtype(LLVMTypeRef t); + + void lp_build_context_init(struct lp_build_context *bld, LLVMBuilderRef builder,