aboutsummaryrefslogtreecommitdiff
path: root/src/check_builtin.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-04-25 20:03:05 +0100
committergingerBill <bill@gingerbill.org>2021-04-25 20:03:05 +0100
commitcb2e6ea31db90ca80314e5ff8ce8f43371fade7c (patch)
treea58df81b7254167e96492a9229402833a96fc715 /src/check_builtin.cpp
parent74c683e908fb0fec6c85de099fbbda400d9d6fbe (diff)
Remove `use_llvm_api` related checks and other related things
Diffstat (limited to 'src/check_builtin.cpp')
-rw-r--r--src/check_builtin.cpp40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp
index 5f4411b90..94e8dcee6 100644
--- a/src/check_builtin.cpp
+++ b/src/check_builtin.cpp
@@ -614,9 +614,6 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32
} else if (type->kind == Type_SimdVector) {
max_count = type->SimdVector.count;
elem_type = type->SimdVector.elem;
- if (!build_context.use_llvm_api) {
- error(call, "'swizzle' with #simd vector is not supported on this backend");
- }
}
i64 arg_count = 0;
@@ -1529,11 +1526,6 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32
}
case BuiltinProc_soa_zip: {
- if (!build_context.use_llvm_api) {
- error(call, "'soa_zip' is not supported with this backend");
- return false;
- }
-
auto types = array_make<Type *>(temporary_allocator(), 0, ce->args.count);
auto names = array_make<String>(temporary_allocator(), 0, ce->args.count);
@@ -1681,11 +1673,6 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32
}
case BuiltinProc_soa_unzip: {
- if (!build_context.use_llvm_api) {
- error(call, "'soa_unzip' is not supported with this backend");
- return false;
- }
-
Operand x = {};
check_expr(c, &x, ce->args[0]);
if (x.mode == Addressing_Invalid) {
@@ -1927,16 +1914,10 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32
case BuiltinProc_trap:
case BuiltinProc_debug_trap:
- if (!build_context.use_llvm_api) {
- error(ce->args[0], "'%.*s' is not supported on this backend", LIT(builtin_procs[id].name));
- }
operand->mode = Addressing_NoValue;
break;
case BuiltinProc_read_cycle_counter:
- if (!build_context.use_llvm_api) {
- error(ce->args[0], "'%.*s' is not supported on this backend", LIT(builtin_procs[id].name));
- }
operand->mode = Addressing_Value;
operand->type = t_i64;
break;
@@ -1944,10 +1925,6 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32
case BuiltinProc_count_ones:
case BuiltinProc_trailing_zeros:
case BuiltinProc_reverse_bits:
- if (!build_context.use_llvm_api) {
- error(ce->args[0], "'%.*s' is not supported on this backend", LIT(builtin_procs[id].name));
- // continue anyway
- }
{
Operand x = {};
check_expr(c, &x, ce->args[0]);
@@ -1971,10 +1948,6 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32
break;
case BuiltinProc_byte_swap:
- if (!build_context.use_llvm_api) {
- error(ce->args[0], "'%.*s' is not supported on this backend", LIT(builtin_procs[id].name));
- // continue anyway
- }
{
Operand x = {};
check_expr(c, &x, ce->args[0]);
@@ -2006,10 +1979,6 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32
case BuiltinProc_overflow_add:
case BuiltinProc_overflow_sub:
case BuiltinProc_overflow_mul:
- if (!build_context.use_llvm_api) {
- error(ce->args[0], "'%.*s' is not supported on this backend", LIT(builtin_procs[id].name));
- // continue anyway
- }
{
Operand x = {};
Operand y = {};
@@ -2189,11 +2158,6 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32
case BuiltinProc_fixed_point_mul_sat:
case BuiltinProc_fixed_point_div_sat:
{
- if (!build_context.use_llvm_api) {
- error(ce->args[0], "'%.*s' is not supported on this backend", LIT(builtin_procs[id].name));
- // continue anyway
- }
-
Operand x = {};
Operand y = {};
Operand z = {};
@@ -2255,10 +2219,6 @@ bool check_builtin_procedure(CheckerContext *c, Operand *operand, Ast *call, i32
case BuiltinProc_expect:
- if (!build_context.use_llvm_api) {
- error(ce->args[0], "'%.*s' is not supported on this backend", LIT(builtin_procs[id].name));
- // continue anyway
- }
{
Operand x = {};
Operand y = {};