/// after linking against other bitcode object files.
///
+#include <llvm/Support/Allocator.h>
+
#include "llvm/codegen.hpp"
#include "llvm/compat.hpp"
#include "llvm/metadata.hpp"
#endif
#include <llvm/Support/raw_ostream.h>
-using namespace clover;
+using clover::module;
using namespace clover::llvm;
namespace {
/// understood by pipe drivers.
///
+#include <llvm/Support/Allocator.h>
+
#include "llvm/codegen.hpp"
#include "llvm/metadata.hpp"
#include <clang/Basic/TargetInfo.h>
-using namespace clover;
+using clover::module;
+using clover::detokenize;
using namespace clover::llvm;
using ::llvm::Module;
module::arg_info create_arg_info(const std::string &arg_name,
const std::string &type_name,
const std::string &type_qualifier,
- const int address_qualifier,
+ const uint64_t address_qualifier,
const std::string &access_qualifier) {
cl_kernel_arg_type_qualifier cl_type_qualifier =
/// executable code as an ELF object file.
///
+#include <llvm/Target/TargetMachine.h>
+#include <llvm/Support/TargetRegistry.h>
+#include <llvm/Transforms/Utils/Cloning.h>
+
#include "llvm/codegen.hpp"
#include "llvm/compat.hpp"
#include "llvm/util.hpp"
#include "core/error.hpp"
-#include <llvm/Target/TargetMachine.h>
-#include <llvm/Support/TargetRegistry.h>
-#include <llvm/Transforms/Utils/Cloning.h>
-
-using namespace clover;
+using clover::module;
+using clover::build_error;
using namespace clover::llvm;
using ::llvm::TargetMachine;
#include "util/algorithm.hpp"
-using namespace clover;
+using clover::module;
+using clover::device;
+using clover::build_error;
+using clover::invalid_build_options_error;
+using clover::map;
+using clover::header_map;
using namespace clover::llvm;
using ::llvm::Function;
#ifdef HAVE_CLOVER_SPIRV
SPIRV::TranslatorOpts
get_spirv_translator_options(const device &dev) {
- const auto supported_versions = spirv::supported_versions();
+ const auto supported_versions = clover::spirv::supported_versions();
const auto maximum_spirv_version =
std::min(static_cast<SPIRV::VersionNumber>(supported_versions.back()),
SPIRV::VersionNumber::MaximumVersion);
SPIRV::TranslatorOpts::ExtensionsStatusMap spirv_extensions;
- for (auto &ext : spirv::supported_extensions()) {
+ for (auto &ext : clover::spirv::supported_extensions()) {
#define EXT(X) if (ext == #X) spirv_extensions.insert({ SPIRV::ExtensionID::X, true });
#include <LLVMSPIRVLib/LLVMSPIRVExtensions.inc>
#undef EXT
/// Extract the int metadata node \p name corresponding to the kernel
/// argument given by \p arg.
///
- inline uint
+ inline uint64_t
get_uint_argument_metadata(const ::llvm::Function &f,
const ::llvm::Argument &arg,
const std::string &name) {