| chigraph master Systems programming language written for beginners in LLVM

BitcodeParser.hpp
Go to the documentation of this file.
1
3 #pragma once
4
5 #ifndef CHI_BITCODE_PARSER_HPP
6 #define CHI_BITCODE_PARSER_HPP
7
8 #include "chi/Fwd.hpp"
9
10 #include <boost/filesystem/path.hpp>
11
12 namespace chi {
13
16 Result parseBitcodeFile(const boost::filesystem::path& file, llvm::LLVMContext& ctx,
17 std::unique_ptr<llvm::Module>* toFill);
18 Result parseBitcodeString(const std::string& bitcode, llvm::LLVMContext& ctx,
19 std::unique_ptr<llvm::Module>* toFill);
20 }
21
22 #endif // CHI_BITCODE_PARSER_HPP
chi::parseBitcodeFile
Result parseBitcodeFile(const boost::filesystem::path &file, llvm::LLVMContext &ctx, std::unique_ptr< llvm::Module > *toFill)
Parse a bitcode file.
Definition: BitcodeParser.cpp:56
Fwd.hpp
Forward declares all the chigraph data types.
chi
The namespace where chigraph lives.
Definition: BitcodeParser.hpp:12
chi::Result
The result object, used for identifiying errors with good diagnostics.
Definition: Result.hpp:72