diff options
author | Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com> | 2023-06-11 17:00:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-11 17:00:53 -0400 |
commit | 10851a1ddaea3e1111ea9f50afba1ff993a0967b (patch) | |
tree | 9792df118f580afb5988a607ce048244455be2c5 /lib/compilers/ispc.ts | |
parent | 79bba4c1d1031fa250919539e7681cfcba250b7a (diff) | |
download | compiler-explorer-10851a1ddaea3e1111ea9f50afba1ff993a0967b.tar.gz compiler-explorer-10851a1ddaea3e1111ea9f50afba1ff993a0967b.zip |
LLVM IR pane improvements (#5078)gh-7669
This PR will add filtering and other output options to the LLVM IR pane


Closes #5062
Related to #5045
Diffstat (limited to 'lib/compilers/ispc.ts')
-rw-r--r-- | lib/compilers/ispc.ts | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/lib/compilers/ispc.ts b/lib/compilers/ispc.ts index bfd097abd..e7c25390b 100644 --- a/lib/compilers/ispc.ts +++ b/lib/compilers/ispc.ts @@ -32,6 +32,7 @@ import {asSafeVer} from '../utils.js'; import {ISPCParser} from './argument-parsers.js'; import {unwrap} from '../assert.js'; +import {LLVMIrBackendOptions} from '../../types/compilation/ir.interfaces.js'; export class ISPCCompiler extends BaseCompiler { static get key() { @@ -56,9 +57,19 @@ export class ISPCCompiler extends BaseCompiler { return options; } - override async generateIR(inputFilename: string, options: string[], filters: ParseFiltersAndOutputOptions) { - const newOptions = [...options, ...unwrap(this.compiler.irArg), '-o', this.getIrOutputFilename(inputFilename)]; - return super.generateIR(inputFilename, newOptions, filters); + override async generateIR( + inputFilename: string, + options: string[], + irOptions: LLVMIrBackendOptions, + filters: ParseFiltersAndOutputOptions, + ) { + const newOptions = [ + ...options, + ...unwrap(this.compiler.irArg), + '-o', + this.getIrOutputFilename(inputFilename, filters), + ]; + return super.generateIR(inputFilename, newOptions, irOptions, filters); } override getArgumentParser() { |