-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
661 additions
and
2 deletions.
There are no files selected for viewing
Submodule HalideIR
updated
from b6637f to adfa66
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""Code generation related functions""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/*! | ||
* Copyright (c) 2016 by Contributors | ||
* Implementation of API functions related to IR build | ||
* \file c_api_ir.cc | ||
*/ | ||
#include <tvm/expr.h> | ||
#include <tvm/ir.h> | ||
|
||
#include "./c_api_registry.h" | ||
#include "../codegen/codegen_c.h" | ||
|
||
namespace tvm { | ||
namespace codegen { | ||
|
||
using ArgStack = const std::vector<APIVariantValue>; | ||
using RetValue = APIVariantValue; | ||
|
||
TVM_REGISTER_API(_codegen_CompileToC) | ||
.set_body([](const ArgStack& args, RetValue *ret) { | ||
*ret = CodeGenC().Compile( | ||
args.at(0), args.at(1), args.at(2), args.at(3)); | ||
}); | ||
|
||
} // namespace codegen | ||
} // namespace tvm |
Oops, something went wrong.