From 27ce5eb0de9f792f3e433bcb239c07d79371cf45 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 10 Sep 2021 16:31:26 -0400 Subject: First Slang LLVM integration (#1934) * #include an absolute path didn't work - because paths were taken to always be relative. * First integration with 'slang-llvm'. * Fix project. * Fix test output. * First pass assert support. * Add inline impls for min and max. * Add abs inline abs impl for llvm. * Make abs not use ternary op * Fix typo in slang-llvm.h * Sundary fixes to make remaining tests using llvm backend pass. --- source/slang/slang-check.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'source/slang/slang-check.cpp') diff --git a/source/slang/slang-check.cpp b/source/slang/slang-check.cpp index 55306a0da..74e30cf8d 100644 --- a/source/slang/slang-check.cpp +++ b/source/slang/slang-check.cpp @@ -12,12 +12,7 @@ namespace Slang { namespace { // anonymous - struct FunctionInfo - { - const char* name; - PassThroughMode compilerType; - }; - + class SinkSharedLibraryLoader : public RefObject, public ISlangSharedLibraryLoader { public: @@ -101,6 +96,7 @@ namespace Slang getOrLoadDownstreamCompiler(PassThroughMode::Clang, sink); getOrLoadDownstreamCompiler(PassThroughMode::Gcc, sink); getOrLoadDownstreamCompiler(PassThroughMode::VisualStudio, sink); + getOrLoadDownstreamCompiler(PassThroughMode::LLVM, sink); } // Mark that we have tried to load it -- cgit v1.2.3