Displaying 20 results from an estimated 52 matches for "guoliang".
2010 Jul 07
3
[LLVMdev] passing parameters for a analysis pass
...analysis pass. My pass need to use some
result from some other tools. I can hard code a file name into my pass,
and let my pass read input there, but what if I do not want the file
name to be hard coded?
Is it possible to do that? If yes, where can I find some documentation
about it?
Thanks,
Guoliang
2010 Jul 07
2
[LLVMdev] source line number for instruction
...oc(N); // DILocation is in DebugInfo.h
unsigned Line = Loc.getLineNumber();
StringRef File = Loc.getFilename();
StringRef Dir = Loc.getDirectory();
}
Does this also work for release 2.7? I did not see the same thing at the
documentation for release 2.7.
Thanks,
Guoliang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100707/944903db/attachment.html>
2010 Jul 08
0
[LLVMdev] passing parameters for a analysis pass
You can use llvm::sys::Path::GetTemporaryDirectory() and put the
inputs and outputs there.
Reid
On Wed, Jul 7, 2010 at 4:23 PM, Guoliang Jin <jingl1345 at gmail.com> wrote:
> Hi,
>
> I want to pass parameter to a analysis pass. My pass need to use some
> result from some other tools. I can hard code a file name into my pass,
> and let my pass read input there, but what if I do not want the file
> name to be...
2010 Sep 22
2
[LLVMdev] Hit assert(I != ValueMap.end() && "Value not in slotcalculator!") in ValueEnumerator.cpp
...ion fails
}
return I->second-1;
}
The output show me that the V that it complains is not the ValueMap, but
the content of *V is in the ValueMap.
This happened when I applied my pass to some modules from .cpp, and my
pass worked on some modules from .c files.
Any hint on this?
Thanks,
Guoliang
2010 Jul 20
2
[LLVMdev] gold and debug information
...owing error:
collect2: ld terminated with signal 6 [Aborted]
Unknown constant!
UNREACHABLE executed at
/local.toadette/aliang/fixing/llvm-2.7/llvm-2.7/lib/Bitcode/Writer/BitcodeWriter.cpp:895!
What is the right way to get a whole program bitcode with debug
information using gold plugin?
Thanks,
Guoliang
2010 Jun 25
2
[LLVMdev] libLLVMgold.so: could not load plugin library
...na use the
gold plugin, but I got the following:
libLLVMgold.so: could not load plugin library
Do you know why this is happening?
Also I noticed the name of the library is changed to LLVMgold.so, and I
just renamed it to libLLVMgold.so when I copied it. Is this the right
thing to do?
Thanks,
Guoliang
2010 Jul 20
4
[LLVMdev] gold and debug information
On 7/20/2010 1:25 AM, Eli Friedman wrote:
> On Mon, Jul 19, 2010 at 11:06 PM, Guoliang Jin<jingl1345 at gmail.com> wrote:
>> Hi,
>>
>> I would like to get the whole program bitcode with debug information in it.
>>
>> I tried to use CFLAGS = "-O4 -g", but it ends with the following error:
>> collect2: ld terminated with signal 6 [...
2010 Aug 19
2
[LLVMdev] What are the optimizations that gold uses during the final link stage?
...bably because of some optimization
during the final link stage? If this is the case, can you point me what
those optimizations are, so that I could also apply them while compiling
per file bytecode to native code.
Or am I using the wrong way to compile per file bytecode to native code?
Thanks,
Guoliang
2010 Jul 20
3
[LLVMdev] gold and debug information
...1: invalid character
Unknown constant!
UNREACHABLE executed at
/local.toadette/aliang/fixing/llvm-2.7/llvm-2.7/lib/Bitcode/Writer/BitcodeWriter.cpp:895!
I do not know how to get the ld invocation you need. If this command is not
what you need, please tell me how to get the ld invocation.
Thanks,
Guoliang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100720/7ae4949b/attachment.html>
2010 Jun 06
1
[LLVMdev] whole program bitcode and gold plugin
...d_hook() and compiled one autotooled
program (ftp://ftp.gnu.org/gnu/diction/diction-1.11.tar.gz) as described
in the gold plugin document, however, I still did not see the output.bc.
Can anyone has succeeded in doing this share with me how you archive
this or what I may miss?
Thanks very much,
Guoliang
2010 Jun 25
0
[LLVMdev] libLLVMgold.so: could not load plugin library
On 25 June 2010 03:17, Guoliang Jin <jingl1345 at gmail.com> wrote:
> Hi there,
>
> I checked out the latest code from the repository, and wanna use the gold
> plugin, but I got the following:
>
> libLLVMgold.so: could not load plugin library
>
> Do you know why this is happening?
>
> Also I n...
2010 Jun 29
1
[LLVMdev] poolalloc error: ‘addPeakMemoryMeasurement’ is not a member of ‘llvm::Timer’
Hi there,
I checked out the poolalloc project from svn repository. I got the error
‘addPeakMemoryMeasurement’ is not a member of ‘llvm::Timer’ while
compiling. Does poolalloc only compile under LLVM 2.7 or earlier, but
not the LLVM under development?
Thanks,
Guoliang
2010 Jul 07
0
[LLVMdev] source line number for instruction
On Jul 6, 2010, at 10:44 PM, Guoliang Jin wrote:
> I found the following at http://llvm.org/docs/SourceLevelDebugging.html#ccxx_frontend
> :
> if (MDNode *N = I->getMetadata("dbg")) { // Here I is an LLVM
> instruction
> DILocation Loc(N); // DILocation is in
> DebugInfo.h...
2010 Jul 07
1
[LLVMdev] source line number for instruction
On 7/7/2010 3:08 PM, Trevor Harmon wrote:
> On Jul 6, 2010, at 10:44 PM, Guoliang Jin wrote:
>
>> I found the following at
>> http://llvm.org/docs/SourceLevelDebugging.html#ccxx_frontend:
>> if (MDNode *N = I->getMetadata("dbg")) { // Here I is an LLVM
>> instruction
>> DILocation Loc(N); // DILocation is...
2010 Jul 20
0
[LLVMdev] gold and debug information
On Mon, Jul 19, 2010 at 11:06 PM, Guoliang Jin <jingl1345 at gmail.com> wrote:
> Hi,
>
> I would like to get the whole program bitcode with debug information in it.
>
> I tried to use CFLAGS = "-O4 -g", but it ends with the following error:
> collect2: ld terminated with signal 6 [Aborted]
> Unknown con...
2010 Jul 22
1
[LLVMdev] gold and debug information
On Thu, Jul 22, 2010 at 1:21 PM, Jin Guoliang <jingl1345 at gmail.com> wrote:
> On Thu, Jul 22, 2010 at 11:35 AM, Devang Patel <devang.patel at gmail.com>wrote:
>
>> On Wed, Jul 21, 2010 at 9:50 AM, Jeffrey Yasskin <jyasskin at google.com>
>> wrote:
>> >> This (Unknown constant! in bitcode write...
2010 Jul 26
2
[LLVMdev] Is there a way to address an instruction?
Hi,
In the objdump for binary, there is always an address associated with an
instruction.
In the bitcode file, is there a way to address an instruction? It does
not have to be a single ID like objdump.
Thanks,
Guoliang
2010 Sep 22
0
[LLVMdev] Hit assert(I != ValueMap.end() && "Value not in slotcalculator!") in ValueEnumerator.cpp
Hi Guoliang,
> I added a function to a module, but failed to write the bitcode to file
> because it hit the:
> assert(I != ValueMap.end()&& "Value not in slotcalculator!")
does the module pass the verifier after you add the function to it?
Ciao,
Duncan.
2010 Jun 06
1
[LLVMdev] Error while compiling mysql using LLVM-gold
Some things to check:
Run llvm-gcc a.c -emit-llvm -use-gold-plugin -Wl,debug
This will print the link command line. What is it? Do you get the same error
messages if you run just that?
Are gold and the plugin linked with the same libstdc++?
Cheers
On Jun 5, 2010 11:50 PM, "Guoliang Jin" <jingl1345 at gmail.com> wrote:
The errors are
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found
/lib/libc.so.6: version `GLIBC_2.7' not found
I can not use it in the command line...
Rafael Espindola wrote:
>>
>> However, I got
>> "...
&g...
2010 Jun 06
2
[LLVMdev] Error while compiling mysql using LLVM-gold
...ure: error: C compiler cannot create executables
..."
when I following those instructions.
Any experience on compiling autotooled projects using LLVM is welcome.
Some online resource on this topic will be great. I am new to this list,
and I guess this topic may be discussed before.
Thanks,
Guoliang