llir-opt  0.0.1
Low-Level Post-Link Optimiser for OCaml and C
riscv.h
1 // This file if part of the llir-opt project.
2 // Licensing information can be found in the LICENSE file.
3 // (C) 2018 Nandor Licker. All rights reserved.
4 
5 #pragma once
6 
7 #include <llvm/Target/TargetMachine.h>
8 
9 #include "core/target.h"
10 
11 
12 
16 class RISCVTarget final : public Target {
17 private:
19  static const Kind kKind = Kind::RISCV;
20 
21 public:
24  const llvm::Triple &triple,
25  const std::string &cpu,
26  const std::string &tuneCPU,
27  const std::string &fs,
28  const std::string &abi,
29  bool shared
30  );
31 
32 private:
33  friend class Target;
34 };
RISCVTarget::RISCVTarget
RISCVTarget(const llvm::Triple &triple, const std::string &cpu, const std::string &tuneCPU, const std::string &fs, const std::string &abi, bool shared)
Construct the target.
Definition: riscv.cpp:11
Target
Definition: target.h:24
Target::Kind
Kind
Enumeration of supported targets.
Definition: target.h:27
RISCVTarget
Definition: riscv.h:16