similar to: Backend Plugins?

Displaying 20 results from an estimated 20000 matches similar to: "Backend Plugins?"

2018 May 17
2
Backend Plugins?
On Thu, May 17, 2018 at 3:09 PM, Friedman, Eli <efriedma at codeaurora.org> wrote: > On 5/17/2018 10:10 AM, Kenneth Adam Miller via llvm-dev wrote: > >> Hello, >> >> >> I've looked around in the documentation, and I can't see anywhere where >> there is a backend plugin capability for LLVM. I'd like to be able to get >> the output of the
2018 May 17
0
Backend Plugins?
On 5/17/2018 10:10 AM, Kenneth Adam Miller via llvm-dev wrote: > Hello, > > > I've looked around in the documentation, and I can't see anywhere > where there is a backend plugin capability for LLVM. I'd like to be > able to get the output of the instruction selector along with the LLVM > IR, or perhaps instrument that. > > > Is there any capability to
2018 May 17
0
Backend Plugins?
On 5/17/2018 12:22 PM, Kenneth Adam Miller wrote: > > On Thu, May 17, 2018 at 3:09 PM, Friedman, Eli > <efriedma at codeaurora.org <mailto:efriedma at codeaurora.org>> wrote: > > On 5/17/2018 10:10 AM, Kenneth Adam Miller via llvm-dev wrote: > > Hello, > > > I've looked around in the documentation, and I can't see >
2018 May 17
2
Backend Plugins?
On Thu, May 17, 2018, 3:31 PM Friedman, Eli <efriedma at codeaurora.org> wrote: > On 5/17/2018 12:22 PM, Kenneth Adam Miller wrote: > > > On Thu, May 17, 2018 at 3:09 PM, Friedman, Eli <efriedma at codeaurora.org> > wrote: > >> On 5/17/2018 10:10 AM, Kenneth Adam Miller via llvm-dev wrote: >> >>> Hello, >>> >>> >>>
2018 Jun 25
2
How to include a opt pass in clang driver
Hello, I have written a pass for the IR and I can run it with opt -load lib/LLVMMyPass.so -mypass -myarguments -S -o output.ll < output.bc I have registered my pass with the following code: static RegisterPass<MyPass> X("mypass", "MyPass Pass (with getAnalysisUsage implemented)"); How do I include the same pass in the clang driver. I tried running the pass: clang
2018 Jun 25
2
How to include a opt pass in clang driver
Hi Eli, I have tried that: static void registerMyPass(const PassManagerBuilder &, llvm::legacy::PassManagerBase &PM) { PM.add(new MyPass()); } static RegisterStandardPasses RegisterMyPass(PassManagerBuilder::EP_OptimizerLast, registerMyPass); It still couldn't find my pass. Regards, Soham Sinha PhD Student,
2018 Sep 17
2
RFC: PassManager extensions
Extension points were a great addition to the PassManager infrastructure. I'm just starting to learn about the new PassManager and am reading Bekket McClane's great series about it. For a long time I've written passes and then hacked up PassManagerBuilder and friends to add it to the pipeline. Then extensions came along. Now I don't need to hack PassManagerBuilder directly but
2018 May 29
2
Getting stack size of compiled functions from LLVM
Hi all, I'm trying to get the amount of stack memory used by the functions I am JIT compiling with LLVM. I have a host C++ program, and I want to be able to access the stack size from the host C++ program. I see in PrologEpilogInserter.cpp that the computed stack size is read from the MachineFunction corresponding to a Function, in order to issue a warning if the stack size is too large.
2017 Nov 07
4
Questions about code-size optimizations in ARM backend
Hi All, I started to work on code-size improvements on ARM target by comparing GCC and LLVM generated code. My first candidate was switch-case lowering. I also created a Bugzilla issue for this topic: https://bugs.llvm.org/show_bug.cgi?id=34902 The full example code and the generated assembly for GCC and for LLVM is in the Bugzilla issue. My first idea was to simplify the following
2017 Jul 07
2
Error in v64i32 type in x86 backend
Thank You. On Fri, Jul 7, 2017 at 10:03 AM, Craig Topper <craig.topper at gmail.com> wrote: > Yes, that error is from instruction selection. I think your legalization > changes worked fine. > > ~Craig > > On Thu, Jul 6, 2017 at 8:21 PM, hameeza ahmed via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> also i further run the following command;
2018 May 29
0
Getting stack size of compiled functions from LLVM
On 5/28/2018 11:34 PM, Nicholas Chapman via llvm-dev wrote: > Hi all, > I'm trying to get the amount of stack memory used by the functions I > am JIT compiling with LLVM. > I have a host C++ program, and I want to be able to access the stack > size from the host C++ program. > > I see in PrologEpilogInserter.cpp that the computed stack size is read > from the
2014 Sep 17
3
[LLVMdev] Need guidance regarding MachineFunctionPass implementation
Hello all, I need to modify llvm bytecode / native code just before it is emitted i.e. after all the regular operations and optimizations are done. I was told that this can be achieved by implementing a MachineFunctionPass. I searched the internet for some tutorials or some example MachineFunctionPass but found nothing. Kindly point some links, or anything that may help. Thank you. Regards,
2019 Jan 19
3
Can't find symbol from llvm backend
No, I don't. But I’m sure it is not optimized because I can see this variable in the final binary file emitted. Do you mean if I don’t refer to this variable in the front end, then I can’t see it in the backend? (although it’s in the final binary file) Thank you! 2019年1月19日(土) 2:00 <paul.robinson at sony.com>: > Do you have a use of the new variable as well? If not, it might be
2017 Jul 06
2
Error in v64i32 type in x86 backend
Hello, i am experimenting with the increase in register/ vector width to 64 elements of 32 bits instead of 16 in x86 backend. for eg. i have a loop with 65 iterations; if my IR generates v64i32 and 1 scalar, still the backend breaks the v64i32 into 4 v16i32. i want it to retain v64i32. like if there are 128 elements in loop then it should break it into 2 v64i32 instructions. in order to do this i
2016 Aug 01
3
testing a back-end pre-emit pass
Hi, Does anyone have any direction for me on testing a back-end pre-emit pass independently of other passes? The pass I'm looking at is a MachineFunctionPass, so the code is already using target-specific instructions. What I'm really looking to do is to see that the pass is correctly converting certain target-specific instructions sequences into other sequences, but I'm unsure how I
2013 Jun 10
0
[LLVMdev] Whole program alias analysis in backend
Hi, I know that backend processes one function at a time, > is it somehow possible to do there a whole program analysis, > or could you give me some guidelines? > There are different kinds of LLVM passes: Those that process a function at a time (FunctionPass), but also those that work on the call graph (CallGraphSCCPass) or on an entire module (ModulePass). These are described in the
2016 Jun 22
2
LLVM Backend Issues
Thanks Anton and Krzysztof! Here is the dump using the -debug flag. At this point I am not making much sense of this, would it be too much to ask if one of you could walk me through one of these lines? One thing that I didn't point out is that I never defined any separate floating point registers, not sure if this will pose any issue? Thanks again for your time! Jeff jeff at
2013 Jun 10
1
[LLVMdev] Whole program alias analysis in backend
Hi, On 06/10/2013 09:13 AM, Jonas Wagner wrote: > Hi, > > I know that backend processes one function at a time, > is it somehow possible to do there a whole program analysis, > or could you give me some guidelines? > > The backend introduces a MachineFunctionPass, from which point on it is only possible to run FunctionPasses, otherwise the machine functions
2017 Jul 10
2
Problems with registering of ModulePass (with Dependencies)
Hello, I have created a ModulePass, that now needs LoopInfo information. The ModulePass registration is taken from [1]. I use clang to directly invoke it (This is also a hard requirement, because I need the fancy output of clang warnings/remarks). The problem is, that the dependency to the LoopInfoWrapperPass does not seem to work. The error is: --- snip --- clang-4.0:
2014 Sep 12
2
[LLVMdev] Is it necessary to implement the whole backend in order to add a new "pass" to the backend ?
Hello all, I am new to llvm. I need to make some changes to the LR. The backend should modify the LR, but only after all the normal work and all the optimizations are done. Just before outputting the native code, LR is modified. I was wondering if I should implement the whole backend in order to achieve this or is it possible to implement a new pass and use that. Thanks ! Regards, Sachin