similar to: [LLVMdev] How to create new local variable

Displaying 20 results from an estimated 600 matches similar to: "[LLVMdev] How to create new local variable"

2011 Mar 25
0
[LLVMdev] set line number debug info
Oh! I made a mistake by not using setDebugInfo() function present in the Instruction class. Now it's working fully. So, the solution is:- To set the line number for an instruction - 1. Add a function in DebugLoc class located in llvm/Support/DebugLoc.h. Set the line number there to the private variable called LineCol. 2. Call the added function. And then pass the modified DebugLoc object to
2011 Mar 25
2
[LLVMdev] set line number debug info
Thanks for the help. I thought I'd solved the problem (setting the line number information in the instruction metadata) by inserting my own function for setting line number in llvm/Support/DebugLoc.h. I have added a function setLine(unsigned) in DebugLoc class. The function simply sets the LineCol variable as needed. But there is a problem. Whenever I'm checking the line number(calling
2011 Jan 17
2
[LLVMdev] File reading in LLVM 2.8
Hi, I am new to LLVM. I am trying to read a plain text file in a llvm pass. But getting an error - llvm[0]: Linking Release Loadable Module LLVMHello.so /usr/bin/ld: /home/abhirup/llvm/llvm2.8_Install/llvm-2.8/lib/Transforms/Hello/Release/Hello.o: relocation R_X86_64_PC32 against undefined symbol `(anonymous namespace)::Hello::update_sec_read(char const*)' can not be used when making a
2011 Mar 14
2
[LLVMdev] set line number debug info
Hi, I am new to LLVM infrastructure. Recently I am trying to set the debug info for an instruction. The main aim is to set the source line number of an instruction. Can anyone please show how to do that? I think that setMetadata method in Instruction class is to be used. But how do I create MDNode* consisting of desired source line number. Source line number can be extracted from the
2011 Mar 14
0
[LLVMdev] set line number debug info
On Mon, Mar 14, 2011 at 8:56 AM, Abhirup Ghosh <abhirupju at gmail.com> wrote: > Hi, >       I am new to LLVM infrastructure. Recently I am trying to set the debug > info for an instruction. The main aim is to set the source line number of an > instruction. Can anyone please show how to do that? >       I think  that setMetadata method in Instruction class is to be used. >
2011 Jan 18
0
[LLVMdev] File reading in LLVM 2.8
Hi Abhirup, please reply to the mailing list and not just to me personally (that way others can answer too, and the discussion is archived which helps other people with the same problem). > How to compile with -fPIC? I am new to llvm so can you please elaborate? This has nothing to do with LLVM: -fPIC is a gcc option needed to build code that is to be part of a dynamic library. So just add
2015 Apr 14
5
[LLVMdev] [cfe-dev] A problem with names that can not be demangled.
Adding llvm-dev as that might be a more suitable audience for this discussion. (& I know Lang's been playing around with the same problem in the Orc JIT, so adding him too) Is there any basis/reason to believe that the .X suffix is a better, more principled one than straight X? Is that documented somewhere as a thing the demangling tools will ignore? On Tue, Apr 14, 2015 at 12:06 PM,
2019 Apr 04
2
single-threaded code-gen and how to make it support multi-thread
Hi llvm-dev, Our code base has a ancient copy of llvm (ver 3.5.1), and it uses the LLVM code gen for some domain-specific language. The previous dev left a global lock around the usage of LLVM code gen stating that because LLVM code gen can only be accessed single-threaded it needs to be protected with this global lock. But now this lock has caused some perf issues as we pretty much lose
2019 Apr 04
2
single-threaded code-gen and how to make it support multi-thread
Thank you Johannes, I looked it up and it seems that we're creating one LLVMContext per compilation "unit", not sure if that matters. i.e. there's no single globally shared LLVMContext object. Is LLVMContext *the* concurrency isolation (or unit) here? On Wed, Apr 3, 2019 at 6:34 PM Doerfert, Johannes <jdoerfert at anl.gov> wrote: > Do you use one llvm context or one
2010 Jul 09
1
[LLVMdev] ValueSymbolTable's mutators are private?
Hi Chris, I was thinking that CreateValueName() was the way to add a symbol to a symbol table. Perhaps I'm thinking about this wrong. Here's what I've got: I've got a string generated by the parser which is constant. I need to add it to the symbol table so that, on starting the second pass of my compiler, I can dump all of the string constants to be generated as code. I
2011 Feb 09
2
[LLVMdev] LLVM in Eclipse
Hi, I am new to Eclipse IDE. I am working with LLVM using command line for some time. Now I want to integrate it with eclipse IDE. Can anyone please give layman instructions how to import the llvm source project, install it and built it in the eclipse IDE. Sorry for this type of novice request. - Abhirup -------------- next part -------------- An HTML attachment was scrubbed... URL:
2015 Apr 14
0
[LLVMdev] [cfe-dev] A problem with names that can not be demangled.
Hi David, Thanks for adding Lang and other mailing lists. Ø Is there any basis/reason to believe that the .X suffix is a better, more principled one Ø than straight X? Is that documented somewhere as a thing the demangling tools Ø will ignore? I don’t know of any documentation but the existing demangling tools, such as c++filt on linux, already stop at ‘.’. So there is precedence. Gcc
2010 Aug 18
2
[LLVMdev] Using ValueSymbolTable...
Hi all, I have a question regarding populating ValueSymbolTable of a Function. Is it that ValueSymbolTable is populated automatically whenever an alloca instruction is created using IRBuilder or do we need to explicitly populate?? If we need to populate explicitly, the insert method in ValueSymbolTable is private, so how can we do it? Currently, I am trying to access the symbol table as below:
2010 Jul 09
2
[LLVMdev] ValueSymbolTable's mutators are private?
Hello, Why are ValueSymbolTable's mutators all private? I can't seem to find a way to add a symbol to the table without using one of them. It looks like a bug to me since there is no way to use it otherwise. --Sam
2013 Oct 25
1
[LLVMdev] bugs on llvm 2.5
Hello, I'm using llvm 2.5. I initially built it with GCC 4.1.2 and it completed building. But when I run it with a simple test function, it fails with the following issue: Value still in symbol table! Type = 'i32' Name = 'a' Value still in symbol table! Type = 'i32' Name = 'b' llc: ValueSymbolTable.cpp:29: llvm::ValueSymbolTable::~ValueSymbolTable():
2010 Jul 09
0
[LLVMdev] ValueSymbolTable's mutators are private?
On Jul 9, 2010, at 12:02 PM, Samuel Crow wrote: > Hello, > > Why are ValueSymbolTable's mutators all private? I can't seem to find a way to > add a symbol to the table without using one of them. It looks like a bug to me > since there is no way to use it otherwise. The mutators are things like Value::setName() -Chris
2010 Feb 15
2
[LLVMdev] Buildbot
Do the buildbots only build debug components? I am seeing lots of this on trunk with release-style builds: [x86_64-off-opt]: Failed with signal(SIGABRT) at line 1 [x86_64-off-opt]: while running: llvm-as < /ptmp/dag/llvm- project.official/llvm/tags/RELEASE_25/test/Transforms/TailDup/basictest2.ll | opt -tailduplicate -disable-output [x86_64-off-opt]: Value still in symbol table! Type =
2009 Aug 05
2
[LLVMdev] Dominator error inserting instructions into BasicBlock
Hi, I've been writing some optimization passes for LLVM and had good luck with the simple stuff, but I am running into all kinds of trouble trying to make copies of variables within a BasicBlock as part of a LoopPass I am trying to make copies of the variables that are in scope in the loop body like so: //Remove the existing terminator
2009 Jan 12
2
[LLVMdev] GlobalVaraible and Function have the same name
Hi all, I just walked across an interesting situation in Module::getOrInsertFunction(Name, Type) in the LLVM C API. In my particular case: One of the first things we do is add a global variable named foo which is a [ 100 x i64 ]. Later we add a function void foo(...) unfortunately, when we do the getOrInsertFunction we get back void (...) * bitcast ([100 x i64]* @foo_ to void (...)*)
2010 Aug 18
0
[LLVMdev] Using ValueSymbolTable...
subramanyam wrote: > > Hi all, > I have a question regarding populating ValueSymbolTable of a Function. > Is it that ValueSymbolTable is populated automatically whenever an alloca > instruction is created using IRBuilder or do we need to explicitly > populate?? It's maintained by LLVM for you, by Value::setName and other methods. Nick