[PATCH] D76866: Enable new passmanager plugin support for LTO.
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 3 12:26:19 PDT 2020
efriedma marked an inline comment as done.
efriedma added inline comments.
================
Comment at: llvm/test/Feature/load_extension.ll:1
+; REQUIRES: x86-registered-target
; RUN: opt %s %loadbye -goodbye -wave-goodbye -disable-output 2>&1 | FileCheck %s
----------------
efriedma wrote:
> serge-sans-paille wrote:
> > why?
> Can't run LTO without specifying a target.
>
> Maybe there's some way to get around that if we don't actually generate code; I can experiment a bit.
Looked at this more. There isn't any easy solution here, but I guess there are a few options:
1. Add a special mode to LTO where it doesn't require a target machine, and just spits out IR.
2. Force the LLVM default target triple. But it's not clear we can reliably generate an object file with that.
3. Force the LLVM default target triple, and add a mode to LTO where it doesn't run codegen.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76866/new/
https://reviews.llvm.org/D76866
More information about the llvm-commits
mailing list