<commit_before>//=======================================================================
// Copyright <NAME> 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
//  http://www.boost.org/LICENSE_1_0.txt)
//=======================================================================

#ifndef INTEL_X86_64_CODE_GENERATOR_H
#define INTEL_X86_64_CODE_GENERATOR_H

#include "asm/IntelCodeGenerator.hpp"

namespace eddic {

namespace as {

/*!
 * \class IntelX86_64CodeGenerator
 * \brief Code generator for Intel X86_64 platform. 
 */
class IntelX86_64CodeGenerator : public IntelCodeGenerator {
    public:
        IntelX86_64CodeGenerator(AssemblyFileWriter& writer);
        
    protected:        
        void writeRuntimeSupport(FunctionTable& table);
        void addStandardFunctions();
        void compile(std::shared_ptr<tac::Function> function);
        
        /* Functions for global variables */
        void defineDataSection();
        void declareIntArray(const std::string& name, unsigned int size);
        void declareStringArray(const std::string& name, unsigned int size);
        void declareIntVariable(const std::string& name, int value);
        void declareStringVariable(const std::string& name, const std::string& label, int size);
        void declareString(const std::string& label, const std::string& value);
};

} //end of as

} //end of eddic

#endif
<commit_msg>Complete the interface<commit_after>//=======================================================================
// Copyright <NAME> 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
//  http://www.boost.org/LICENSE_1_0.txt)
//=======================================================================

#ifndef INTEL_X86_64_CODE_GENERATOR_H
#define INTEL_X86_64_CODE_GENERATOR_H

#include "asm/IntelCodeGenerator.hpp"

namespace eddic {

namespace as {

class IntelX86_64StatementCompiler;

/*!
 * \class IntelX86_64CodeGenerator
 * \brief Code generator for Intel X86_64 platform. 
 */
class IntelX86_64CodeGenerator : public IntelCodeGenerator {
    public:
        IntelX86_64CodeGenerator(AssemblyFileWriter& writer);
        
    protected:        
        void writeRuntimeSupport(FunctionTable& table);
        void addStandardFunctions();
        void compile(std::shared_ptr<tac::Function> function);
        
        /* Functions for global variables */
        void defineDataSection();
        void declareIntArray(const std::string& name, unsigned int size);
        void declareStringArray(const std::string& name, unsigned int size);
        void declareIntVariable(const std::string& name, int value);
        void declareStringVariable(const std::string& name, const std::string& label, int size);
        void declareString(const std::string& label, const std::string& value);
        
    private:        
        void compile(std::shared_ptr<tac::BasicBlock> block, IntelX86_64StatementCompiler& compiler);
};

} //end of as

} //end of eddic

#endif

{'fraction_non_alphanumeric': 0.1813186813186813, 'fraction_numerical': 0.02456367162249515, 'mean_word_length': 3.952, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6706484', 'n_tokens_mistral': 870, 'n_tokens_neox': 809, 'n_words': 218}