search for: ir

Displaying 20 results from an estimated 16856 matches for "ir".

2019 Aug 07
2
Status of the New Pass Manager
On 8/7/19 6:20 PM, Hiroshi Yamauchi wrote: > I basically run "clang > -fexperimental-new-pass-manager -print-after-all ..." > > It's conceivable that something is different in our setup or in clang > (from opt)... I'll see if I can reproduce it outside our setup. Does it depend on machi...
2012 Nov 17
4
[LLVMdev] Dynamic optimalization passes in LLVM based compiler
> > I know that LLVM Pass was designed to transform IR, but lets focus on an > > example - LLVM Pass is a function that transform some set of input into > > output. It can transform IR into graph of lets say strongly connected > > components and then other passes can use it (that data - not IR) to > generate > > other data OR...
2015 Jan 17
2
[LLVMdev] How to test isDereferenceablePointer?
...es and I want to know how to test this patch. So far, I've found one candiate: speculative execution in SimplifyCFG (test/Transforms/SimplifyCFG/SpeculativeExec.ll). However, it's somewhat involved to show that SimplifyCFG does kick in for gc.relocate. Is there a better way to directly test it? Signed-off-by: Ramkumar Ramachandra <artagnon at gmail.com> --- lib/IR/Value.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/IR/Value.cpp b/lib/IR/Value.cpp index 5f7e258..aa701d5 100644 --- a/lib/IR/Value.cpp ++...
2013 Jun 27
4
[LLVMdev] Proposal: extended MDString syntax
On Thu, Jun 27, 2013 at 9:50 AM, Jakob Stoklund Olesen <stoklund at 2pi.dk>wrote: > On Jun 26, 2013, at 4:18 PM, Eric Christopher <echristo at gmail.com> wrote: > > > So inverting it so that MI contains LLVM IR instead of the other way > > around? Then we'd need a serialization format for MI that happened to > > include a way of serializing LLVM IR within. From a quick "hey, this > > seems reasonable" the idea of embedding the MI into the IR rather than > > the other...
2014 Mar 04
9
[LLVMdev] Upstreaming PNaCl's IR simplification passes
The PNaCl project has implemented various IR simplification passes that simplify LLVM IR by lowering complex features to simpler features. We'd like to upstream some of these IR passes to LLVM. We'd like to explore if this acceptable, and if so, how we should go about doing this. The immediate reason is that Emscripten is reusing P...
2013 Jun 27
0
[LLVMdev] Proposal: extended MDString syntax
...andler Carruth <chandlerc at google.com> wrote: > > On Thu, Jun 27, 2013 at 9:50 AM, Jakob Stoklund Olesen <stoklund at 2pi.dk> wrote: > On Jun 26, 2013, at 4:18 PM, Eric Christopher <echristo at gmail.com> wrote: > > > So inverting it so that MI contains LLVM IR instead of the other way > > around? Then we'd need a serialization format for MI that happened to > > include a way of serializing LLVM IR within. From a quick "hey, this > > seems reasonable" the idea of embedding the MI into the IR rather than > > the other...
2019 Jan 20
2
Difference when compiling human readable IR vs bitcode with clang frontend
Going from IR <-> BC does not seem to create a difference. IR -> BC -> IR -> BC, either with clang frontent or by using llvm-as and llvm-dis yields identical bc files. I have only been able to reproduce this issue when emitting to an object file. > On 18 Jan 2019, at 18:09, <paul.robinson...
2016 Jan 22
6
[GlobalISel][RFC] Contract between LLVM IR and the backends for ISel
Hi, I would like your opinions on the contract we have between the LLVM IR and the backends. * Context * Right now, the backends are supposed to be able to perform instruction selection on any valid LLVM IR. Although this is *not* something I want to change for GlobalISel, I thought I brought that up on the mailing list to discuss the implications. In particular, in t...
2017 Dec 07
3
May IR types be merged by llvm-link?
Hi all, There is some uncertainty in the concept of LLVM IR, which results in unexpected IR in some cases. The problem description is here: https://reviews.llvm.org/D40567#943747. In short, llvm-link tries to merge an opaque type with its definition, using type name for that. Clang uses the same name for all specializations of a class template,...
2015 Apr 28
9
[LLVMdev] RFC: Machine Level IR text-based serialization format
Hi all, I would like to propose a text-based, human readable format that will be used to serialize the machine level IR. The major goal of this format is to allow LLVM to save the machine level IR after any code generation pass and then to load it again and continue running passes on the machine level IR. The primary use case of this format is to enable easier testing process for the code generation passes, by a...
2019 Jan 18
2
Difference when compiling human readable IR vs bitcode with clang frontend
We've noticed a difference in the embedded bitcode when compiling human readable IR to an object directly vs first compiling IR to BC and then an object through clang -cc1. If the original IR file contained an "llvm.compiler.used" gv, it will be preserved when compiling IR -> BC -> Obj. When compiling IR -> Obj directly, it will be removed. This difference does...
2012 Nov 17
2
[LLVMdev] Dynamic optimalization passes in LLVM based compiler
Thank you for yours response :) I know that LLVM Pass was designed to transform IR, but lets focus on an example - LLVM Pass is a function that transform some set of input into output. It can transform IR into graph of lets say strongly connected components and then other passes can use it (that data - not IR) to generate other data OR to manipulate the IR. So why I can not crea...
2012 Nov 17
0
[LLVMdev] Dynamic optimalization passes in LLVM based compiler
On Sat, Nov 17, 2012 at 1:09 PM, Wojciech Daniło <wojtek.danilo.ml at gmail.com> wrote: > Thank you for yours response :) > I know that LLVM Pass was designed to transform IR, but lets focus on an > example - LLVM Pass is a function that transform some set of input into > output. It can transform IR into graph of lets say strongly connected > components and then other passes can use it (that data - not IR) to generate > other data OR to manipulate the IR. &g...
2014 Oct 01
2
[LLVMdev] [cfe-dev][Openmp-dev] Provide LLVM IR and OpenMP LLVM IR as input in a Pass
Hi all, I am going to build a Pass/es that verify OpenMP code. When we compile an OpenMP program we give the option “-fopenmp” to clang. In this way the LLVM IR code obtained will reflect also the “#pragma” keywords in the code, let’s call it "OpenMP LLVM IR". In my Pass/es before obtaining the OpenMP LLVM IR, I need to do some operation in the LLVM IR, that is the IR code obtained compiling the program without the flag “-fopenmp”. So, to b...
2012 Nov 18
0
[LLVMdev] Dynamic optimalization passes in LLVM based compiler
I would love to ask you one more question. You have written: It's not really going to give you a lot of value compared to just building your own graph transformation pipeline & then producing IR at the end of that. Could you please tell more about this topic? Why my custom solution (custom pass manager etc) would be better than making LLVM (non IR) passes? 2012/11/17 Wojciech Daniło <wojtek.danilo.ml at gmail.com> > > > I know that LLVM Pass was designed to transf...
2018 May 11
2
About Error: Interpreter has not been linked in
...d::move(m_module)).setErrorStr(&error).create(); Here are all headers I have included: #include "llvm/ADT/STLExtras.h" #include "llvm/ExecutionEngine/ExecutionEngine.h" #include "llvm/ExecutionEngine/GenericValue.h" #include "llvm/IR/Argument.h" #include "llvm/IR/BasicBlock.h" #include "llvm/IR/Constants.h" #include "llvm/IR/DerivedTypes.h" #include "llvm/IR/Function.h" #include "llvm/IR/IRBuilder.h" #include "llvm/IR/...
2019 Jan 06
2
LLVM IR linking separate function definitions in header files in single IR
Thank You.. I am observing memory allocation instructions malloc and new operator in LLVM IR. In my considered benchmark memory is allocated using new operator as follows. *return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp)));* How can I observe such allocations in IR? I mean which instruction in IR is equivalent to above code i.e new operator. Please help Thank You On Sun,...
2012 Nov 26
0
[LLVMdev] Dynamic optimalization passes in LLVM based compiler
On Nov 17, 2012, at 1:56 PM, Wojciech Daniło <wojtek.danilo.ml at gmail.com> wrote: > > > I know that LLVM Pass was designed to transform IR, but lets focus on an > > example - LLVM Pass is a function that transform some set of input into > > output. It can transform IR into graph of lets say strongly connected > > components and then other passes can use it (that data - not IR) to generate > > other data OR to m...
2012 Nov 19
2
[LLVMdev] Inserting dead code in IR byte code
Hi all, I am working on my Master's project in security and for this I need to do following things : 1. I have a IR bytecode of the main program. I want to insert dead code from other source files (e.g. cygwin files or the Linux files) in main program's IR byte code. 2. In order to insert code, I can try following two ways : (i) I have observed that these IR bytecode files are just like a text file and th...
2018 Mar 13
2
Passes interaction running on two different IRs
Hi all, I am trying to run two llvm passes on two different IRs to finish my analysis. These two passes need to exchange information during their excecution. I am doing so because I can't link the two IRs I want to analyze together as a big IR and run my llvm pass on it. What I want to do specifically is: The first IR will call the functions in the secon...