Cthulhu  0.2.10
Cthulhu compiler collection
target.c File Reference
Include dependency graph for target.c:

Go to the source code of this file.

Macros

#define NEW_EVENT(id, ...)   const diagnostic_t kEvent_##id = __VA_ARGS__;
 
#define NEW_EVENT(id, ...)   &kEvent_##id,
 

Variables

CT_DRIVER_API const target_t kTargetLLVM
 

Macro Definition Documentation

◆ NEW_EVENT [1/2]

#define NEW_EVENT (   id,
  ... 
)    const diagnostic_t kEvent_##id = __VA_ARGS__;

Definition at line 7 of file target.c.

◆ NEW_EVENT [2/2]

#define NEW_EVENT (   id,
  ... 
)    &kEvent_##id,

Definition at line 7 of file target.c.

Variable Documentation

◆ kTargetLLVM

CT_DRIVER_API const target_t kTargetLLVM
Initial value:
= {
.info = {
.id = "target/llvm",
.name = "C",
.version = {
.license = "LGPLv3",
.author = "Elliot Haisley",
.desc = "LLVM output target",
.version = CT_NEW_VERSION(0, 0, 1)
},
.diagnostics = {
.diagnostics = kDiagnosticTable,
.count = sizeof(kDiagnosticTable) / sizeof(const diagnostic_t *)
}
},
.fn_create = llvm_create,
.fn_destroy = llvm_destroy,
.fn_ssa = llvm_ssa
}
#define CT_NEW_VERSION(major, minor, patch)
creates a new ctu_version_t from major, minor and patch
Definition: version_def.h:20
CT_LOCAL emit_result_t llvm_ssa(target_runtime_t *runtime, const ssa_result_t *ssa, target_emit_t *emit)
Definition: ssa.c:298
CT_LOCAL void llvm_destroy(target_runtime_t *runtime)
Definition: ssa.c:86
CT_LOCAL void llvm_create(target_runtime_t *runtime)
Definition: ssa.c:61
a diagnostic
Definition: diagnostic.h:27

Definition at line 15 of file target.c.