Commit 116b5a5a by PENGUINLIONG Committed by Tianqi Chen

Note about CodeGenC's Range of Use (#866)

parent 2e94a4b5
...@@ -24,6 +24,11 @@ using namespace ir; ...@@ -24,6 +24,11 @@ using namespace ir;
* \brief A base class to generate C code. * \brief A base class to generate C code.
* *
* CodeGenC have two modes: generate SSA formed C code or normal form. * CodeGenC have two modes: generate SSA formed C code or normal form.
*
* **NOTE** CodeGenC does not aim at generating C codes consumed by MSVC or GCC,
* Rather, it's providing infrastructural abstraction for C variants like CUDA
* and OpenCL-C. You might find some odd variant features, e.g., type `int3` for
* a vector of 3 `int`s. For native C code generator, see `CodeGenLLVM`.
*/ */
class CodeGenC : class CodeGenC :
public ExprFunctor<void(const Expr&, std::ostream&)>, public ExprFunctor<void(const Expr&, std::ostream&)>,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment