aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/clang.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers/clang.js')
-rw-r--r--lib/compilers/clang.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/compilers/clang.js b/lib/compilers/clang.js
index fa197d026..5e3252965 100644
--- a/lib/compilers/clang.js
+++ b/lib/compilers/clang.js
@@ -24,6 +24,7 @@
import path from 'path';
+import { AmdgpuAsmParser } from '../asm-parser-amdgpu';
import { SassAsmParser } from '../asm-parser-sass';
import { BaseCompiler } from '../base-compiler';
@@ -68,3 +69,15 @@ export class ClangCudaCompiler extends ClangCompiler {
return result;
}
}
+export class ClangHipCompiler extends ClangCompiler {
+ static get key() { return 'clang-hip'; }
+ constructor(info, env) {
+ super(info, env);
+
+ this.asm = new AmdgpuAsmParser();
+ }
+
+ optionsForFilter(filters, outputFilename) {
+ return ['-o', this.filename(outputFilename), '-g1', '--no-gpu-bundle-output', filters.binary ? '-c' : '-S'];
+ }
+}