aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/mlir.ts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers/mlir.ts')
-rw-r--r--lib/compilers/mlir.ts35
1 files changed, 19 insertions, 16 deletions
diff --git a/lib/compilers/mlir.ts b/lib/compilers/mlir.ts
index 3cd9ea1f4..a065cebc0 100644
--- a/lib/compilers/mlir.ts
+++ b/lib/compilers/mlir.ts
@@ -24,7 +24,7 @@
import path from 'path';
-import {CompilerInfo} from '../../types/compiler.interfaces';
+import {PreliminaryCompilerInfo} from '../../types/compiler.interfaces';
import {ParseFiltersAndOutputOptions} from '../../types/features/filters.interfaces';
import {BaseCompiler} from '../base-compiler';
@@ -35,21 +35,24 @@ export class MLIRCompiler extends BaseCompiler {
return 'mlir';
}
- constructor(compilerInfo: CompilerInfo, env) {
- if (!compilerInfo.disabledFilters) {
- compilerInfo.disabledFilters = [
- 'binary',
- 'execute',
- 'demangle',
- 'intel',
- 'labels',
- 'libraryCode',
- 'directives',
- 'commentOnly',
- 'trim',
- ];
- }
- super(compilerInfo, env);
+ constructor(compilerInfo: PreliminaryCompilerInfo, env) {
+ super(
+ {
+ disabledFilters: [
+ 'binary',
+ 'execute',
+ 'demangle',
+ 'intel',
+ 'labels',
+ 'libraryCode',
+ 'directives',
+ 'commentOnly',
+ 'trim',
+ ],
+ ...compilerInfo,
+ },
+ env,
+ );
}
override getCompilerResultLanguageId() {