Skip to content

Commit

Permalink
fixup! Add support for machine-dependent builtins
Browse files Browse the repository at this point in the history
  • Loading branch information
antoyo committed Dec 14, 2022
1 parent 2c6329f commit b518f40
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gcc/jit/dummy-frontend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,10 @@ recording::type* tree_type_to_jit_type (tree type)
{
return new recording::memento_of_get_type (&target_builtins_ctxt, GCC_JIT_TYPE_LONG_DOUBLE);
}
else if (type == bfloat16_type_node)
{
return new recording::memento_of_get_type (&target_builtins_ctxt, GCC_JIT_TYPE_VOID); // FIXME: wrong type.
}
else if (type == dfloat128_type_node)
{
return new recording::memento_of_get_type (&target_builtins_ctxt, GCC_JIT_TYPE_VOID); // FIXME: wrong type.
Expand Down Expand Up @@ -819,6 +823,8 @@ recording::type* tree_type_to_jit_type (tree type)
{
if (TYPE_QUALS (tp) == 0)
{
// FIXME: this is extremely error-prone. This can lead to an infinite recursion if a condition is missing
// above.
recording::type* result = tree_type_to_jit_type (tp);
if (result != NULL)
{
Expand Down

0 comments on commit b518f40

Please sign in to comment.