Skip to content

Commit

Permalink
Merge pull request #66 from ChrisCummins/feature/ProGraML/46
Browse files Browse the repository at this point in the history
Implement graph construction as an llvm::ModulePass
  • Loading branch information
ChrisCummins authored Jan 24, 2020
2 parents 3c70a3a + a76dbf9 commit dbbd125
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
15 changes: 15 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,21 @@ load("@com_github_chriscummins_rules_bats//:bats.bzl", "bats_deps")

bats_deps()

# Python config. Needed by pybind11_bazel.

load("//third_party/py:python_configure.bzl", "python_configure")

python_configure(name = "local_config_python")

# Pybind11.

http_archive(
name = "pybind11",
build_file = "//:third_party/pybind11_bazel/pybind11.BUILD",
strip_prefix = "pybind11-2.4.3",
urls = ["https://github.com/pybind/pybind11/archive/v2.4.3.tar.gz"],
)

# OpenCL headers.

http_archive(
Expand Down
4 changes: 2 additions & 2 deletions labm8/cpp/app.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace labm8 {

void InitApp(int* argc, char*** argv, const char* usage_string) {
std::string usage(usage_string);
if (!usage.empty()) {
if (usage_string) {
std::string usage(usage_string);
gflags::SetUsageMessage(usage);
}

Expand Down
2 changes: 1 addition & 1 deletion labm8/cpp/app.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ namespace labm8 {

// Initialize an application. This should be called first in main(). This takes
// care of handling flags and setting the app's usage string.
void InitApp(int* argc, char*** argv, const char* usage_string = "");
void InitApp(int* argc, char*** argv, const char* usage_string = nullptr);

} // namespace labm8

0 comments on commit dbbd125

Please sign in to comment.