similar to: [LLVMdev] How can a pass obtain the path of input file?

Displaying 20 results from an estimated 40000 matches similar to: "[LLVMdev] How can a pass obtain the path of input file?"

2013 Apr 07
1
[LLVMdev] How to get the Instruction where one function use the global variable.
Hi, all I try to get the Instructions where one function use the global variable. for (llvm::Module::global_iterator gvar_iter = M.global_begin(); gvar_iter != M.global_end(); gvar_iter++) { llvm::GlobalVariable *gvar = &*gvar_iter; llvm::errs() << "const global var: " << gvar->getName() << "\n"; for (
2018 Apr 10
1
How to get the case value from Machine Instruction
Thanks for your help. Is there possible I can get the realily case value form the MI? For the case in https://bugs.llvm.org/show_bug.cgi?id=34902. as follows. ############################# * GCC v7.1 generated assembly ############################# ** Options: -Os -marm -march=armv7-a foo: @ args = 0, pretend = 0, frame = 0 @ frame_needed = 0, uses_anonymous_args = 0 sub
2018 May 29
0
LLVM Social - Beijing: May 19th, 2018
Hope live broadcast ! <br/><br/>Thanks,<br/>yaoxiao 在 2018-05-29 15:02:30,"Leslie Zhai via llvm-dev" <llvm-dev at lists.llvm.org> 写道: > > >在 2018年05月29日 14:58, mayuyu.io 写道: >> Any hint on the date of LLVM Social ShangHai? >Wu Wei scheduled July 1th http://hellollvm.org/ > > >> >> Zhang >> >>> 在
2018 Apr 09
2
How to get the case value from Machine Instruction
Hi, guys I am interesting about how to get the switch case value form the Machine Instruction. I know the switch will be converted to jump-table in the Machine Instruction. And in the phase CodeGen , the case-value of SwitchInst can get esasly. but it seems no case -value in Machine Instruction. The MI as follows: Frame Objects: fi#0: size=1, align=0, at location [SP] fi#1: size=4,
2018 Apr 09
0
How to get the case value from Machine Instruction
Some glitch in the emailer? I have received this message 3 times in a row!? I think that by the time it gets as far as MI-level there is no reversible method of determining the 'case' label at all. The reason I say this, is that I have often seen optimisations that coalesce groups of values into interesting logical tests and jump-tables are completely avoided. For example, a simple
2012 Aug 20
1
[LLVMdev] llmv3.0 CBackend convert IR to IR error
Thank you for answering my E-mail. According to http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-March/047989.html, I open the link: https://hpcforge.org/scm/viewvc.php/trunk/patches/llvm.gpu.patch?root=kernelgen&view=markup https://hpcforge.org/scm/viewvc.php/trunk/patches/llvm.patch?revision=591&root=kernelgen&view=markup The result is: SCM Repository An Exception Has Occurred
2012 Aug 18
2
[LLVMdev] llmv3.0 CBackend convert IR to IR error
In llvm3.0,I use the llc to convert the IR to C code, But the code lack key words like "struct", Who can tell me how to modify the CBackend, 3Q ^-^ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120818/ee901cb1/attachment.html>
2013 May 03
2
[LLVMdev] How to convert the .s file(assemble) to .ll (IR)
Hi all, I have the file which is assemble, I want to convert it to IR. Are there some tools to do this in LLVM? Thanks, Yao -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130503/d7fd4741/attachment.html>
2009 Oct 29
3
How to obtain the context path in a Jruby app on Tomcat?
Hi all, I successfully deployed my JRuby on Rails app on Tomcat In a jsp page I''d use ${pageContext.request.contextPath} to obtain my context path.How could I do this in a Ruby controller? Thanks Rafael Roque -- Posted via http://www.ruby-forum.com/.
2006 Jul 10
1
How can I obtain the values of BIAS and STD. ERROR from a bootstrap.
R 2.3.1 Windows XP Question: How can I obtain the values of BIAS and STD. ERROR from a bootstrap. Background: I am running a bootstrap: result2<-boot(1:400,regSEvssample,R=5000) and obtain the following results: Bootstrap Statistics : original bias std. error t1* 1.876602 -0.0001368616 0.1630380 I would like to get the values of ORIGINAL and BIAS. I can get the value of
2012 Aug 18
0
[LLVMdev] llmv3.0 CBackend convert IR to IR error
Hi, First of all, please note: as of v3.1, C backend has been thrown away for being "buggy" and "unmaintained". Several months ago there was a similar question, and it was solved. Please see the patch attached here: http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-March/047989.html Best, - D. 2012/8/18 xiaoyaollvm <xiaoyaollvm at 126.com>: > In llvm3.0,I use the llc
2012 Jun 05
4
How do I obtain the current active path of a function that's being called?
Hi all, How do I obtain the current active path of a function that's being called? That's to say, I have several source files and they all contain definition of function A. I would like to figure out which function A and from which file is the one that's being called and is currently active? Thanks a lot! [[alternative HTML version deleted]]
2007 Dec 04
1
How can I use Adehabitat to obtain an .asc object with the predicted values of a niche model?
Dear all, I'm using the package adehabitat in R to import several .asc files (=matrix), and also create a kasc object (=dataframe) with all of them. The main idea is to use this kasc object to map the predicted values of climate-matching model for an overall area. However, I don't know how to proceed: Do I have to project the model (already stored in R) onto the kasc object directly, or
2013 Dec 16
3
[LLVMdev] How can I obtain upper bound of a pointer?
Hi, How can I obtain the upper bound of a pointer in the code? For example, I have a pointer Ptr which points to a block of memory that is allocated by malloc, say, Ptr = malloc(size); Then what should I do if I am going to get the upper bound of the memory block that is pointed to by Ptr in the runtime? Thanks, Ben -------------- next part -------------- An HTML attachment was scrubbed...
2013 Dec 16
0
[LLVMdev] How can I obtain upper bound of a pointer?
This is rather off-topic for LLVM, it's a C programming question and the C answer is: you can't. C doesn't expose any way to find the upper limit of 'Ptr' you just have to keep track of what size you used yourself. On Sun, Dec 15, 2013 at 6:22 PM, 李永超 <lyc364 at gmail.com> wrote: > Hi, > How can I obtain the upper bound of a pointer in the code? For example, I
2010 Jul 06
0
[LLVMdev] runtime assert failure when trying to obtain analysis pass info within a transformation pass
I am having problems passing analysis results to transformation passes, so I reduced my testcase into the following bare bone: Pass1: simple FunctionPass, counting functions Pass2: transformation pass, for now, just trying to obtain a reference of Pass1 using AU.getAnalysis<Pass1>() inside its runOnFunction(). When I run it, I get the following runtime error: opt -load
2008 Mar 31
0
[LLVMdev] Pass registered multiple times!
> If you disassemble your input bytecode file and look at the LLVM > disassembly, I'd bet that either __main() and puts are external > functions with no function body or are not present in the file at all. You're right. The assembly code only has the body of main function and the external function declaration puts declare i32 @puts(i8*) It makes sense, I think, that my
2018 May 29
2
LLVM Social - Beijing: May 19th, 2018
在 2018年05月29日 14:58, mayuyu.io 写道: > Any hint on the date of LLVM Social ShangHai? Wu Wei scheduled July 1th http://hellollvm.org/ > > Zhang > >> 在 2018年5月29日,14:22,Leslie Zhai via llvm-dev <llvm-dev at lists.llvm.org> 写道: >> >> Hi Chris, >> >> Thanks for your response! >> >> Wu Wei made this happen! and he is organizing LLVM social in
2008 Mar 31
2
[LLVMdev] Pass registered multiple times!
Lu Zhao wrote: > It turned out to be the problem of this line in Makefile > > LLVMLIBS = LLVMCore.a LLVMSupport.a LLVMSystem.a > > The error is gone when I remove the above line. > > However, the pass output only contains one line of the main function. > > First: main > > It does not have puts and __main as shown in this page: >
2003 Dec 17
3
[LLVMdev] pass position
Suppose, I have a Pass1 implemented as a subclass of Pass, with source code in the directory of llvm source base( transform/analyze ) I can run that pass through opt on the bytecode emitted by gcc frontend through opt tool. However, I want that Pass1 to be the part of the actual GCC compiler. I want to know how I can position Pass1 among other passes /optimizations/ code generations. e.g if