Goose  Diff

Differences From Artifact [c835010917]:

  • File bs/builtins/types/runtime/array.cpp — part of check-in [0c646816e4] at 2023-02-20 17:54:25 on branch trunk — Migrated to clang16/llvm16. Created a shitty layer on top of llvm to cope with losing the pointee types from llvm pointer types (which are now opaques). It was a huge pain in the ass. (user: zlodo size: 1726)

To Artifact [bf7d69c339]:

  • File bs/builtins/types/runtime/array.cpp — part of check-in [901e99ce8e] at 2023-12-01 18:26:30 on branch cir-not-stack-language — Temporarily disabled codegen, verification, etc. here we go again (user: zlodo size: 1787)

18
19
20
21
22
23
24


25
26
27
28
29
30
31
32
33

                return ToValue( ArrayType( ValueToEIR( containedType ), count ) );
            } );
    }

    const codegen::Type* GetCodegenType( const ArrayType& a )
    {


        return codegen::Type::Get( llvm::ArrayType::get(
            *GetCodegenType( *EIRToValue( a.m_containedType ) ), a.m_count ) );
    }
}

namespace goose::eir
{
    Value Bridge< ArrayType >::ToValue( const ArrayType& a )
    {







>
>
|
|







18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

                return ToValue( ArrayType( ValueToEIR( containedType ), count ) );
            } );
    }

    const codegen::Type* GetCodegenType( const ArrayType& a )
    {
        // TODO_REENABLE_CODEGEN
        return nullptr;
        /*return codegen::Type::Get( llvm::ArrayType::get(
            *GetCodegenType( *EIRToValue( a.m_containedType ) ), a.m_count ) );*/
    }
}

namespace goose::eir
{
    Value Bridge< ArrayType >::ToValue( const ArrayType& a )
    {