LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
target.hh
Go to the documentation of this file.
1 
6 #ifndef TARGET_IA32_TARGET_HH
7 # define TARGET_IA32_TARGET_HH
8 
9 # include <target/target.hh>
10 # include <target/ia32/cpu.hh>
12 # include <target/ia32/codegen.hh>
13 
14 namespace target
15 {
16  namespace ia32
17  {
18 
20  class Target : public target::Target
21  {
24  public:
25  Target (bool rule_trace_p = false);
26  virtual ~Target ();
29  public:
31  virtual const Cpu& cpu_get () const override;
33  virtual Cpu& cpu_get () override;
34 
36  virtual const Assembly& assembly_get () const override;
38  virtual Assembly& assembly_get () override;
39 
41  virtual const Codegen& codegen_get () const override;
43  virtual Codegen& codegen_get () override;
44 
45  protected:
49  ia32::Codegen codegen_;
50 
51  // This should be a ia32::Assembly, dynamicaly set to
52  // GasAssembly or other.
54  };
55 
56  } // namespace ia32
57 } // namespace target
58 
59 #endif // !TARGET_IA32_TARGET_HH