Goose  Diff

Differences From Artifact [e5cb843988]:

  • File bs/codegen/module.h — part of check-in [e814ad7e23] at 2020-04-11 21:01:58 on branch trunk —
    • Implemented load, store and pointers in execute and codegen.
    • Implemented load and pointers in verify.
    • When unifying a local variable against a parameter, generate a reference.
    (user: achavasse size: 6500)

To Artifact [bef50e169f]:

  • File bs/codegen/module.h — part of check-in [d38aab5fc2] at 2020-04-11 23:33:06 on branch trunk — Updated to the latest git version of llvm. (user: achavasse size: 6485)

22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
                llvm::Function::LinkageTypes linkageType );

            llvm::Function* getOrCreateFunc( const Context& c, const builtins::Func& func );
            llvm::Function* getOrCreateFunc( const Context& c, const builtins::Func& func, const string& name,
                llvm::Function::LinkageTypes linkageType );

            void runOptimizationPasses();
            bool emitToFile( const string& filename, llvm::TargetMachine::CodeGenFileType type );

        private:
            struct Infos
            {
                Infos( const Context& c ) : context( c ) {}
                const Context& context;








|







22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
                llvm::Function::LinkageTypes linkageType );

            llvm::Function* getOrCreateFunc( const Context& c, const builtins::Func& func );
            llvm::Function* getOrCreateFunc( const Context& c, const builtins::Func& func, const string& name,
                llvm::Function::LinkageTypes linkageType );

            void runOptimizationPasses();
            bool emitToFile( const string& filename, llvm::CodeGenFileType type );

        private:
            struct Infos
            {
                Infos( const Context& c ) : context( c ) {}
                const Context& context;