aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers
diff options
context:
space:
mode:
Diffstat (limited to 'lib/compilers')
-rw-r--r--lib/compilers/argument-parsers.ts24
-rw-r--r--lib/compilers/hlsl.ts6
-rw-r--r--lib/compilers/llc.ts8
-rw-r--r--lib/compilers/opt.ts8
-rw-r--r--lib/compilers/rust.ts8
-rw-r--r--lib/compilers/snowball.ts2
-rw-r--r--lib/compilers/swift.ts8
7 files changed, 32 insertions, 32 deletions
diff --git a/lib/compilers/argument-parsers.ts b/lib/compilers/argument-parsers.ts
index 604eb434a..cd89e9783 100644
--- a/lib/compilers/argument-parsers.ts
+++ b/lib/compilers/argument-parsers.ts
@@ -275,15 +275,15 @@ export class ClangParser extends BaseParser {
this.mllvmOptions.has('--print-before-all') &&
this.mllvmOptions.has('--print-after-all')
) {
- compiler.compiler.supportsLLVMOptPipelineView = true;
- compiler.compiler.llvmOptArg = ['-mllvm', '--print-before-all', '-mllvm', '--print-after-all'];
- compiler.compiler.llvmOptModuleScopeArg = [];
- compiler.compiler.llvmOptNoDiscardValueNamesArg = [];
+ compiler.compiler.supportsOptPipelineView = true;
+ compiler.compiler.optPipelineArg = ['-mllvm', '--print-before-all', '-mllvm', '--print-after-all'];
+ compiler.compiler.optPipelineModuleScopeArg = [];
+ compiler.compiler.optPipelineNoDiscardValueNamesArg = [];
if (this.mllvmOptions.has('--print-module-scope')) {
- compiler.compiler.llvmOptModuleScopeArg = ['-mllvm', '-print-module-scope'];
+ compiler.compiler.optPipelineModuleScopeArg = ['-mllvm', '-print-module-scope'];
}
if (this.hasSupport(options, '-fno-discard-value-names')) {
- compiler.compiler.llvmOptNoDiscardValueNamesArg = ['-fno-discard-value-names'];
+ compiler.compiler.optPipelineNoDiscardValueNamesArg = ['-fno-discard-value-names'];
}
}
@@ -496,15 +496,15 @@ export class LDCParser extends BaseParser {
}
if (this.hasSupport(options, '--print-before-all') && this.hasSupport(options, '--print-after-all')) {
- compiler.compiler.supportsLLVMOptPipelineView = true;
- compiler.compiler.llvmOptArg = ['--print-before-all', '--print-after-all'];
- compiler.compiler.llvmOptModuleScopeArg = [];
- compiler.compiler.llvmOptNoDiscardValueNamesArg = [];
+ compiler.compiler.supportsOptPipelineView = true;
+ compiler.compiler.optPipelineArg = ['--print-before-all', '--print-after-all'];
+ compiler.compiler.optPipelineModuleScopeArg = [];
+ compiler.compiler.optPipelineNoDiscardValueNamesArg = [];
if (this.hasSupport(options, '--print-module-scope')) {
- compiler.compiler.llvmOptModuleScopeArg = ['--print-module-scope'];
+ compiler.compiler.optPipelineModuleScopeArg = ['--print-module-scope'];
}
if (this.hasSupport(options, '--fno-discard-value-names')) {
- compiler.compiler.llvmOptNoDiscardValueNamesArg = ['--fno-discard-value-names'];
+ compiler.compiler.optPipelineNoDiscardValueNamesArg = ['--fno-discard-value-names'];
}
}
diff --git a/lib/compilers/hlsl.ts b/lib/compilers/hlsl.ts
index 0b5662ac7..c4d2f8e48 100644
--- a/lib/compilers/hlsl.ts
+++ b/lib/compilers/hlsl.ts
@@ -41,9 +41,9 @@ export class HLSLCompiler extends BaseCompiler {
this.compiler.supportsIntel = false;
this.spirvAsm = new SPIRVAsmParser(this.compilerProps);
- this.compiler.supportsLLVMOptPipelineView = true;
- this.compiler.llvmOptArg = ['-print-before-all', '-print-after-all'];
- this.compiler.llvmOptNoDiscardValueNamesArg = [];
+ this.compiler.supportsOptPipelineView = true;
+ this.compiler.optPipelineArg = ['-print-before-all', '-print-after-all'];
+ this.compiler.optPipelineNoDiscardValueNamesArg = [];
}
override async generateAST(inputFilename, options): Promise<ResultLine[]> {
diff --git a/lib/compilers/llc.ts b/lib/compilers/llc.ts
index f15915321..dc7144817 100644
--- a/lib/compilers/llc.ts
+++ b/lib/compilers/llc.ts
@@ -36,10 +36,10 @@ export class LLCCompiler extends BaseCompiler {
constructor(info: PreliminaryCompilerInfo, env) {
super(info, env);
this.compiler.supportsIntel = true;
- this.compiler.supportsLLVMOptPipelineView = true;
- this.compiler.llvmOptArg = ['-print-after-all', '-print-before-all'];
- this.compiler.llvmOptModuleScopeArg = ['-print-module-scope'];
- this.compiler.llvmOptNoDiscardValueNamesArg = [];
+ this.compiler.supportsOptPipelineView = true;
+ this.compiler.optPipelineArg = ['-print-after-all', '-print-before-all'];
+ this.compiler.optPipelineModuleScopeArg = ['-print-module-scope'];
+ this.compiler.optPipelineNoDiscardValueNamesArg = [];
}
override getSharedLibraryPathsAsArguments() {
diff --git a/lib/compilers/opt.ts b/lib/compilers/opt.ts
index f5c0d4cb6..418230f31 100644
--- a/lib/compilers/opt.ts
+++ b/lib/compilers/opt.ts
@@ -35,10 +35,10 @@ export class OptCompiler extends BaseCompiler {
constructor(info: PreliminaryCompilerInfo, env) {
super(info, env);
- this.compiler.supportsLLVMOptPipelineView = true;
- this.compiler.llvmOptArg = ['-print-after-all', '-print-before-all'];
- this.compiler.llvmOptModuleScopeArg = ['-print-module-scope'];
- this.compiler.llvmOptNoDiscardValueNamesArg = [];
+ this.compiler.supportsOptPipelineView = true;
+ this.compiler.optPipelineArg = ['-print-after-all', '-print-before-all'];
+ this.compiler.optPipelineModuleScopeArg = ['-print-module-scope'];
+ this.compiler.optPipelineNoDiscardValueNamesArg = [];
}
override optionsForFilter(filters: ParseFiltersAndOutputOptions, outputFilename: string) {
diff --git a/lib/compilers/rust.ts b/lib/compilers/rust.ts
index 98683f6d9..e57a86840 100644
--- a/lib/compilers/rust.ts
+++ b/lib/compilers/rust.ts
@@ -49,7 +49,7 @@ export class RustCompiler extends BaseCompiler {
super(info, env);
this.compiler.supportsIntel = true;
this.compiler.supportsIrView = true;
- this.compiler.supportsLLVMOptPipelineView = true;
+ this.compiler.supportsOptPipelineView = true;
this.compiler.supportsRustMirView = true;
const isNightly = this.isNightly();
@@ -60,9 +60,9 @@ export class RustCompiler extends BaseCompiler {
this.compiler.irArg = ['--emit', 'llvm-ir'];
this.compiler.minIrArgs = ['--emit=llvm-ir'];
- this.compiler.llvmOptArg = ['-C', 'llvm-args=-print-after-all -print-before-all'];
- this.compiler.llvmOptModuleScopeArg = ['-C', 'llvm-args=-print-module-scope'];
- this.compiler.llvmOptNoDiscardValueNamesArg = isNightly ? ['-Z', 'fewer-names=no'] : [];
+ this.compiler.optPipelineArg = ['-C', 'llvm-args=-print-after-all -print-before-all'];
+ this.compiler.optPipelineModuleScopeArg = ['-C', 'llvm-args=-print-module-scope'];
+ this.compiler.optPipelineNoDiscardValueNamesArg = isNightly ? ['-Z', 'fewer-names=no'] : [];
this.linker = this.compilerProps<string>('linker');
}
diff --git a/lib/compilers/snowball.ts b/lib/compilers/snowball.ts
index b39c09808..2e3a3d1e2 100644
--- a/lib/compilers/snowball.ts
+++ b/lib/compilers/snowball.ts
@@ -40,7 +40,7 @@ export class SnowballCompiler extends BaseCompiler {
super(info, env);
this.compiler.supportsIntel = true;
this.compiler.supportsIrView = true;
- this.compiler.supportsLLVMOptPipelineView = true;
+ this.compiler.supportsOptPipelineView = true;
this.compiler.supportsCfg = true;
this.compiler.irArg = ['--emit', 'llvm-ir'];
diff --git a/lib/compilers/swift.ts b/lib/compilers/swift.ts
index 6b4406aeb..7d943752f 100644
--- a/lib/compilers/swift.ts
+++ b/lib/compilers/swift.ts
@@ -35,10 +35,10 @@ export class SwiftCompiler extends BaseCompiler {
constructor(info: PreliminaryCompilerInfo, env) {
super(info, env);
- this.compiler.supportsLLVMOptPipelineView = true;
- this.compiler.llvmOptArg = ['-Xllvm', '-print-after-all', '-Xllvm', '-print-before-all'];
- this.compiler.llvmOptModuleScopeArg = ['-Xllvm', '-print-module-scope'];
- this.compiler.llvmOptNoDiscardValueNamesArg = [];
+ this.compiler.supportsOptPipelineView = true;
+ this.compiler.optPipelineArg = ['-Xllvm', '-print-after-all', '-Xllvm', '-print-before-all'];
+ this.compiler.optPipelineModuleScopeArg = ['-Xllvm', '-print-module-scope'];
+ this.compiler.optPipelineNoDiscardValueNamesArg = [];
}
override getSharedLibraryPathsAsArguments() {