radeonsi: add llvm_type_is_64bit() helper

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Timothy Arceri
2017-11-07 21:41:27 +11:00
parent 7ef1e42c14
commit 650126f3e0
+9
View File
@@ -103,6 +103,15 @@ enum {
LOCAL_ADDR_SPACE = 3,
};
static bool llvm_type_is_64bit(struct si_shader_context *ctx,
LLVMTypeRef type)
{
if (type == ctx->ac.i64 || type == ctx->ac.f64)
return true;
return false;
}
static bool is_merged_shader(struct si_shader *shader)
{
if (shader->selector->screen->info.chip_class <= VI)