Displaying 20 results from an estimated 20000 matches similar to: "[LLVMdev] How does the debug info correspond to the normal info?"
2010 Jun 10
2
[LLVMdev] For clarifying the "<Result>" in Instructions
Hello Reid,
Thanks.
> Yes, it's an integral part of the Instruction. You can change it by
> providing a name when you create the instruction.
Following your hint, can I understand in this following way?
The name (denoted by "<result>") is actually a referrer to the instruction .
Consider this instruction:
%this_addr = alloca %struct.String* ;
2010 Jun 18
3
[LLVMdev] Question on Load and GetElementPtr instructions
Hey,
Considering the following instruction:
%20 = load %struct.Node** getelementptr inbounds (%struct.Node*
@head, i32 0, i32 0), align 16 ; <%struct.Node*> [#uses=1]
What is the type of the first operand of the instruction (i.e.,
getOperand(0))?
I thought the operand is a "GetElementPtr" instruction, however, the
predicate "isa<Instruction>()" over
2010 Jun 10
2
[LLVMdev] For clarifying the "<Result>" in Instructions
Hi all,
In the language specifications, many instructions have this form:
<result> = ...
So, where is "<result>" defined? Is it an integral part of an instruction?
Consider the "getelementptr" instruction:
<result> = getelementptr <pty>* <ptrval>{, <ty> <idx>}*
How is the "<result>" represented?
Best,
2010 Jun 18
0
[LLVMdev] Question on Load and GetElementPtr instructions
Good evening, Tang.
> What is the type of the first operand of the instruction (i.e.,
> getOperand(0))?
It might be ConstantExpr.
You may use dyn_cast<GEPOperator>(getPointerOperand()).
Also GetElementPtrInst* can be casted to GEPOperator.
...Takumi
2010/6/18 Xiaolong Tang <xiaolong.snake at gmail.com>:
>
> Hey,
>
> Considering the following instruction:
>
2010 Jun 10
0
[LLVMdev] For clarifying the "<Result>" in Instructions
Yes, it's an integral part of the Instruction. You can change it by
providing a name when you create the instruction.
Reid
On Thu, Jun 10, 2010 at 8:34 AM, Xiaolong Tang <xiaolong.snake at gmail.com> wrote:
> Hi all,
>
> In the language specifications, many instructions have this form:
>
> <result> = ...
>
> So, where is "<result>" defined?
2010 Jun 10
0
[LLVMdev] For clarifying the "<Result>" in Instructions
On Thu, Jun 10, 2010 at 9:00 AM, Xiaolong Tang <xiaolong.snake at gmail.com> wrote:
>
> Hello Reid,
>
> Thanks.
>
>> Yes, it's an integral part of the Instruction. You can change it by
>> providing a name when you create the instruction.
>
> Following your hint, can I understand in this following way?
>
> The name (denoted by
2010 Jun 07
4
[LLVMdev] Another two questions on LLVM
Hi all,
Considering the limit time I have for an implementation, I better ask
for your inputs on a few questions. Any answer is to be much
appreciated.
First, how does LLVM handle the "new statement" of C++? Could any one
give me any hint?
Second, what properties does the callgraph generated by LLVM has? One
property I am interesting in is whether the callgraph is a safe
2010 Aug 27
3
[LLVMdev] How to demange C++ names
Hey all,
Just wondering if LLVM has any command options or tool to allow for
demangling C++ names from the LLVM bitcode?
Thanks!
Best,
Xiaolong
2010 Aug 27
5
[LLVMdev] How to demange C++ names
Hi Renato,
> > Just wondering if LLVM has any command options or tool to allow for
> > demangling C++ names from the LLVM bitcode?
>
> c++filt?
Do you refer to any particular version of c++filt? I tried, but seemed
not to work. For example, when I run a command as below:
c++filt _ZNSt4listIiSaIiEEaSERKS1_
The output remains the same as the input symbol.
By the way,
2010 Aug 27
0
[LLVMdev] How to demange C++ names
On 27 August 2010 18:56, Xiaolong Tang <xiaolong.snake at gmail.com> wrote:
> Just wondering if LLVM has any command options or tool to allow for
> demangling C++ names from the LLVM bitcode?
c++filt?
--renato
2012 May 22
0
[LLVMdev] How to get llvm bitcode executed
Guess I have found some clues. Some necessary libraries have to be
loaded while trying to generate native code or do interpretation. Then
another question emerges: Is there a way to determine the necessary
libraries in need? And where to locate these necessary libraries?
Xiaolong
> Hi All,
>
> I have a program that uses C++ STL a lot. To have the source code for
> STL functions, I
2010 Sep 29
3
[LLVMdev] gcc, conceptgcc, and llvm-gcc
Hey all,
My previous work was done mainly in the front-end of conceptgcc,
whereas recently I am doing some code analysis in the middle-end of
llvm. I am considering to port my previous work to llvm.
So, I am very concerned with the difference between gcc and llvm-gcc,
and of course the difference between gcc and conceptgcc. I have no
idea of the former difference, though I have some idea of
2010 Jun 18
1
[LLVMdev] Is there any general way to figure out dynamically allocated points?
Hey,
I need to approximate the run-time objects of a program. It is up to
the compiler's front-end to make the decision on how to translate the
new-expressions in C++, however. This obfuscates the way to figure out
dynamically allocated program points in the middle-end (e.g. LLVM).
So I am wondering if there is any general way to do so? Does the
front-end provide any hint(s) to the
2012 May 22
4
[LLVMdev] How to get llvm bitcode executed
Hi All,
I have a program that uses C++ STL a lot. To have the source code for
STL functions, I undefined "_GLIBCXX_EXTERN_TEMPLATE" in
c++config.h. In spite of this, after compilation (via clang) and
linking (via llvm-ld), the resulting bitcode contains a few declared
functions (with no definitions).
My question is: In the scenario where some function definitions are
missing in a llvm
2010 Aug 27
0
[LLVMdev] How to demange C++ names
On Aug 27, 2010, at 11:43 AM, Xiaolong Tang wrote:
> Hi Renato,
>
>>> Just wondering if LLVM has any command options or tool to allow for
>>> demangling C++ names from the LLVM bitcode?
>>
>> c++filt?
>
> Do you refer to any particular version of c++filt? I tried, but seemed
> not to work. For example, when I run a command as below:
>
>
2009 Nov 04
2
[LLVMdev] Debug info
Devang Patel wrote:
> Hi Richard,
>
> How do you produce this LLVM assembly? In newest form,
> llvm.dbg.func_start intrinsic is not used.
> -
> Devang
>
Hi Devang,
The assembly is disassembled from bitcode that I create.
I must be using obsolete remnants of the API. I'm calling
EmitFunctionStart(), EmitStopPoint(), etc. What should I be using?
-Rich
2010 May 25
1
[LLVMdev] DEBUG INFO at the bytecode level
Devang Patel <devang.patel <at> gmail.com> writes:
>
> 2010/5/18 Zheng Wang <jason.wangz <at> gmail.com>:
> >
> > I found DebugInfo.cpp may be useful. Could you tell me which function
> > I should call inorder to know the source file name and the line number
> > for a particular instruction?
> >
>
> See
2009 Nov 03
2
[LLVMdev] Debug info
Hi,
I'm trying to use the new debug info and I seem to have broken
something. The attached LLVM assembly is the result of compiling a
simple main() function. If I generate x86 assembly language from this I
get the attached assembly file.
The debug info seems complete, except that the .Lfunc_begin symbol is
referenced but not defined in the .s file.
llvm-dis, llvm-as, and llc seem
2010 May 18
0
[LLVMdev] DEBUG INFO at the bytecode level
2010/5/18 Zheng Wang <jason.wangz at gmail.com>:
>
> I found DebugInfo.cpp may be useful. Could you tell me which function
> I should call inorder to know the source file name and the line number
> for a particular instruction?
>
See http://llvm.org/docs/SourceLevelDebugging.html#ccxx_frontend
At the end of "C/C++ source file information" section, there is a
small
2012 May 22
2
[LLVMdev] How to get llvm bitcode executed
Thanks Duncan and Ashok,
As Duncan described, "lli -load=libstdc++.dylib ..." works. I,
however, encounted an "Illegal instruction" message, while I was
trying to interpret a large program. So, does lli have a debug switch
for dumping out the details for errors?
Using llc is not that simple, and I have not gotten through the
compilation process. For instance, "llc -o