@@ -26,14 +26,6 @@ VAST_UNRELAX_WARNINGS
26
26
27
27
namespace vast ::cc {
28
28
29
- namespace llvmir = target::llvmir;
30
-
31
- using pipeline = llvmir::pipeline;
32
-
33
- [[nodiscard]] pipeline parse_pipeline (const std::optional< vast_args::option_list > &list);
34
-
35
- [[nodiscard]] pipeline parse_pipeline (string_ref from);
36
-
37
29
[[nodiscard]] target_dialect parse_target_dialect (string_ref from);
38
30
39
31
[[nodiscard]] std::string to_string (target_dialect target);
@@ -177,11 +169,8 @@ namespace vast::cc {
177
169
backend backend_action, owning_module_ref mlir_module, mcontext_t *mctx
178
170
) {
179
171
llvm::LLVMContext llvm_context;
180
- llvmir::register_vast_to_llvm_ir (*mctx);
181
- // auto pipeline = parse_pipeline(vargs.get_options_list(opt::opt_pipeline));
182
- // llvmir::lower_hl_module(mlir_module.get(), pipeline);
183
172
184
- auto mod = llvmir::translate (mlir_module.get (), llvm_context);
173
+ auto mod = target:: llvmir::translate (mlir_module.get (), llvm_context);
185
174
auto dl = cgctx->actx .getTargetInfo ().getDataLayoutString ();
186
175
clang::EmitBackendOutput (
187
176
opts.diags , opts.headers , opts.codegen , opts.target , opts.lang , dl, mod.get (),
@@ -259,29 +248,4 @@ namespace vast::cc {
259
248
VAST_UNIMPLEMENTED_MSG (" VAST does not yet support the given source language" );
260
249
}
261
250
262
- pipeline parse_pipeline (const std::optional< vast_args::option_list > &list) {
263
- if (!list) {
264
- return llvmir::default_pipeline ();
265
- }
266
-
267
- if (list->size () != 1 ) {
268
- VAST_UNREACHABLE (" Cannot use more than one pipeline!" );
269
- }
270
-
271
- return parse_pipeline (list->front ());
272
- }
273
-
274
- pipeline parse_pipeline (string_ref from) {
275
- auto trg = from.lower ();
276
- if (trg == " with-abi" ) {
277
- return pipeline::with_abi;
278
- }
279
- if (trg == " baseline" ) {
280
- return pipeline::baseline;
281
- }
282
-
283
- VAST_UNREACHABLE (" Unknown option of pipeline to use: {0}" , trg);
284
- }
285
-
286
-
287
251
} // namespace vast::cc
0 commit comments