Displaying 20 results from an estimated 200 matches similar to: "[RFC] Generalize out-of-tree pass support"
2019 Dec 12
3
Adding custom callback function before/after passes
Hello Fedor.
Thank you for the information.
I made a simple patch that exposes PassInstrumentationCallback so
llvmGetPassPluginInfo can use it: https://reviews.llvm.org/D71086 . Would
this change make sense?
Thanks,
Juneyoung Lee
On Thu, Dec 12, 2019 at 12:44 AM Fedor Sergeev <fedor.sergeev at azul.com>
wrote:
>
>
> On 12/3/19 8:01 PM, Juneyoung Lee via llvm-dev wrote:
>
>
2020 Mar 27
2
We have a problem about pass.
Dear, LLVM developers.
We appreciate your interest.
We contacted to solve the problem of setting the pass. Our pass setup
process is as follows:
1. Add pass subdirectory from CMakeLists.txt in llvm/lib/Tranform
2. Change CMakeLists.txt in llvm/lib/Transform/pass
3. Run make in llvm/build/lib
However, the desired pass file was not created. There were no errors in the
make process.
Installed
2019 Jul 15
3
Looking for an out-of-source "Hello, world" LLVM/Clang pass example
Andrzej,
On 7/14/19 8:02 AM, Andrzej Warzynski wrote:
> This is still very early stages, but you can be my guinea pig:
>
> https://github.com/banach-space/llvm-tutor
>
> It's a tutorial that I've been preparing recently and am hoping to
> present somewhere at some point :-) I believe that it already covers 1),
> 2) and 3). I haven't had the time to work on 4).
2018 Jul 10
2
custom LLVM Pass with options fails to load
Hi,
I'm working on an LLVM Pass plugin and I'm running into a problem when
loading it into opt.
I want to have a custom option for my pass and added an llvm::cl::opt
#include'ing "llvm/Support/CommandLine.h"
linking the dependant libs causes the following error when loading it
with opt:
opt: CommandLine Error: Option 'debug-pass' registered more than once!
I
2020 Nov 10
1
unusual use of getenv
Hi Michael
On Tue Nov 10, 2020 at 1:29 AM GMT, Michael Kruse wrote:
> Am Mo., 2. Nov. 2020 um 14:01 Uhr schrieb David Blaikie
> <dblaikie at gmail.com>:
> > Hmm, not sure why the whole file was added only when MSVC support was added - if it is a "static library object file selection" issue. Wouldn't that have turned up on other platforms before that moment?
>
2018 Jul 12
2
custom LLVM Pass with options fails to load
Hi Philip,
thanks for the quick answer.
That makes sense, but when leaving the set LLVM_LINK_COMPONENTS out
I get an undefined symbol when loading the plugin:
_ZTVN4llvm2cl3optINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb0ENS0_6parserIS7_EEEE
which boils down to
llvm::cl::opt<std::__cxx11::basic_string<char, std::char_traits<char>,
std::allocator<char>>,
2020 Nov 02
4
unusual use of getenv
Oh, right, this stuff. I guess the non-windows solution might've been a
volatile read, for instance? So maybe not so much that the general
machinery isn't needed, but that perhaps MSVC does something interesting
with a volatile read or whatever other solution might've been used.
Hmm, not sure why the whole file was added only when MSVC support was added
- if it is a "static
2019 Dec 03
3
Adding custom callback function before/after passes
Hello all,
Is there a way to register callback that runs before/after passes?
PassTimingInfo seems to do a similar thing by calling
PassInstrumentationCallbacks::registerBeforePassCallback /
registerAfterPassCallback, but it is hard-wired with
StandardInstrumentations class.
Do we have something similar to RegisterStandardPasses, so custom callbacks
can be added from somewhere outside LLVM?
2008 May 30
2
[LLVMdev] notes on llvmc2
Being fully aware that llvmc2 is work-in-progress, here are some notes nethertheless:
I already compiled llvm, but llvm-gcc was still compiling. Now I tried the new llvmc2:
$ llvmc2 -opt -v main.c
llvm-g++ -c -x c main.c -o /tmp/llvm_KeApik/main.bc -emit-llvm
llvmc2: Can't find program 'llvm-g++'
* after this, the directory /tmp/llvm_KeApik was not removed
* why using /tmp at all?
2016 Sep 30
4
(Thin)LTO llvm build
I just built a stage-1 compiler from the 3.9 release bits and built the
lldb from head sources which worked fine. Let me try again using 3.9 build
compiler to build 3.9 bits. Teresa
On Tue, Sep 27, 2016 at 2:55 PM, Teresa Johnson <tejohnson at google.com>
wrote:
>
>
> On Tue, Sep 27, 2016, 2:38 PM Carsten Mattner <carstenmattner at gmail.com>
> wrote:
>
>> On
2005 Jan 14
6
[LLVMdev] Proposed Makefile Changes
Hi,
In buildling XPS using LLVM's makefile system, I'm finding that there's
a few things lacking in our support for LLVM-based projects. The items
below should help but may require changes to project makefiles. I
thought I'd check before just going and doing it.
1. Various autoconf generated variables (e.g. abs_top_srcdir) are
set in the makefiles but not used. They
2005 Feb 15
0
[LLVMdev] Removing $(LLVM_SRC_ROOT)/autoconf dependensies in Stacker, llvm-java [PATCH]
On Mon, 2005-02-14 at 20:53, Chris Lattner wrote:
> On Mon, 14 Feb 2005, Reid Spencer wrote:
>
> > Personally, I don't think LLVM projects should need much in the way of
> > autoconf stuff. They certainly don't need to replicate things like
> > install-sh and mkinstalldirs. I'd vote for taking these out of the
> > projects rather than making the makefiles
2005 Feb 15
3
[LLVMdev] Removing $(LLVM_SRC_ROOT)/autoconf dependensies in Stacker, llvm-java [PATCH]
On Mon, 14 Feb 2005, Reid Spencer wrote:
> Personally, I don't think LLVM projects should need much in the way of
> autoconf stuff. They certainly don't need to replicate things like
> install-sh and mkinstalldirs. I'd vote for taking these out of the
> projects rather than making the makefiles deal with them. I think in
> most cases these are just historical artifacts
2013 Nov 11
0
[LLVMdev] [cfe-dev] Goal for 3.5: Library-friendly headers
I don't think NDEBUG is that easy. We use assert liberally[1] in templated
code in headers. What about cast<>, which has assert(isa<...>...)? On
ELF, you have an ODR problem, and you'll get either one or the other based
on the whims of the dynamic linker.
You could probably get things to the point that it sort of works, but I
don't think we could support it without
2017 Apr 06
2
Shipping LLVM.dll for the C API with the Windows installer.
The following is an older commandline i used. Have a more recent one at
home. But basically you can write it as batch and trigger it within a
target during the build(never got targets into correct order, i am a cmake
noob)
So for reference, i'll post this one and look for the recent one at home(if
that didn't go down with my recent hdd crash):
cmd /Q /V:ON /c "for /F
2012 Mar 09
2
[LLVMdev] RFE: Rename LLVM_ATTRIBUTE_{READONLY, READNONE} to LLVM_{READONLY, READNONE}
Hi all,
I would like to rename
LLVM_ATTRIBUTE_READONLY to LLVM_READONLY
and
LLVM_ATTRIBUTE_READNONE to LLVM_READNONE
Any objections?
- Daniel
2012 Mar 09
0
[LLVMdev] RFE: Rename LLVM_ATTRIBUTE_{READONLY, READNONE} to LLVM_{READONLY, READNONE}
What's the reason for renaming them?
-bw
On Mar 8, 2012, at 4:57 PM, Daniel Dunbar wrote:
> Hi all,
>
> I would like to rename
> LLVM_ATTRIBUTE_READONLY to LLVM_READONLY
> and
> LLVM_ATTRIBUTE_READNONE to LLVM_READNONE
>
> Any objections?
>
> - Daniel
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at
2012 Mar 09
2
[LLVMdev] RFE: Rename LLVM_ATTRIBUTE_{READONLY, READNONE} to LLVM_{READONLY, READNONE}
On Mar 8, 2012, at 6:31 PM, Bill Wendling wrote:
> What's the reason for renaming them?
I can think of two things:
1) it being an attribute is an implementation detail
2) it being long makes it annoying to use :)
-Chris
>
> -bw
>
> On Mar 8, 2012, at 4:57 PM, Daniel Dunbar wrote:
>
>> Hi all,
>>
>> I would like to rename
>>
2012 Mar 09
0
[LLVMdev] RFE: Rename LLVM_ATTRIBUTE_{READONLY, READNONE} to LLVM_{READONLY, READNONE}
On Thu, Mar 8, 2012 at 7:03 PM, Chris Lattner <clattner at apple.com> wrote:
>
> On Mar 8, 2012, at 6:31 PM, Bill Wendling wrote:
>
>> What's the reason for renaming them?
>
> I can think of two things:
>
> 1) it being an attribute is an implementation detail
> 2) it being long makes it annoying to use :)
Exactly.
- Daniel
> -Chris
>
>>
2002 Nov 21
1
[LLVMdev] instruction/register identifier?
Also sprach Juan Nicolas Ruiz:
} Is there a way get the register on the LHS of a llvm instruction? (in
} case there is one)
}
} for example, given a "free %reg773", I want to find the matching
} "%something = malloc %", where %something is not necessarily %reg773.
} One way I found was to inmediately follow the use-def chain up from
} the free to the malloc. But instead, I