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/compiler-core/slang-llvm-compiler.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 source/compiler-core/slang-llvm-compiler.h (limited to 'source/compiler-core/slang-llvm-compiler.h') diff --git a/source/compiler-core/slang-llvm-compiler.h b/source/compiler-core/slang-llvm-compiler.h new file mode 100644 index 000000000..4044aef0f --- /dev/null +++ b/source/compiler-core/slang-llvm-compiler.h @@ -0,0 +1,18 @@ +#ifndef SLANG_LLVM_COMPILER_UTIL_H +#define SLANG_LLVM_COMPILER_UTIL_H + +#include "slang-downstream-compiler.h" + +#include "../core/slang-platform.h" + +namespace Slang +{ + +struct LLVMDownstreamCompilerUtil +{ + static SlangResult locateCompilers(const String& path, ISlangSharedLibraryLoader* loader, DownstreamCompilerSet* set); +}; + +} + +#endif -- cgit v1.2.3