Displaying 20 results from an estimated 1200 matches similar to: "[LLVMdev] MDNodeFwdDecl"
2015 Jun 02
2
[LLVMdev] MDNodeFwdDecl
> On 2015-Jun-02, at 11:14, Hui Zhang <wayne.huizhang at gmail.com> wrote:
>
> Any ideas ?
>
> Thanks
>
> On Tue, Jun 2, 2015 at 12:40 PM, Hui Zhang <wayne.huizhang at gmail.com> wrote:
> Hello,
>
> I'm having this assertion fail when I was using DIBuilder to create the debug information:
>
> Expected no forward declarations!
> !719
>
2015 Nov 04
2
how to add the location debug info for each instruction
> On Nov 3, 2015, at 5:00 PM, Hui Zhang <wayne.huizhang at gmail.com> wrote:
>
> Hello,
>
> I found a weird thing in llvm 3.3:
>
> For exactly the same MDNode *space, if I cast it to DILocation loc(space) and call loc.getFileName(), or I cast it to DIScope sco(space) and call sco.getFilename(), the return value would be different ! Totally two different files
2015 Jun 04
2
[LLVMdev] `Ty && "Trying to add a type that doesn't exist?
Upgrade clang? I can't reproduce it with trunk.
On 4 June 2015 at 14:48, Hui Zhang <wayne.huizhang at gmail.com> wrote:
> Yes, I found this link, but what's the solution??
>
> On Thu, Jun 4, 2015 at 1:09 PM, Rafael Espíndola
> <rafael.espindola at gmail.com> wrote:
>>
>> I think this is https://llvm.org/bugs/show_bug.cgi?id=16846
>>
>> On
2015 Nov 03
3
how to add the location debug info for each instruction
Hello,
For some reason, I have to stick on llvm 3.3 for a language compiler, I
find that the location debug info is attached to each instruction using
!dbg, however, I found some of that information is mis-attched and need to
be changed, so I want to *know what functions(I checked all funcs in
DIBuilder.h but didn't find a appropriate one) are used to attach those
!dbg nodes to each
2015 Jun 04
2
[LLVMdev] `Ty && "Trying to add a type that doesn't exist?
I think this is https://llvm.org/bugs/show_bug.cgi?id=16846
On Jun 4, 2015 12:04 PM, "Hui Zhang" <wayne.huizhang at gmail.com> wrote:
> Is there any clue for this error ?
>
> Thanks
>
> On Tue, Jun 2, 2015 at 5:47 PM, Hui Zhang <wayne.huizhang at gmail.com>
> wrote:
>
>> Hello,
>>
>> I'm having this error and couldn't find a
2015 Jun 02
2
[LLVMdev] `Ty && "Trying to add a type that doesn't exist?
Hello,
I'm having this error and couldn't find a resolution from online, any help
would be greatly appreciated:
clang:
/export/home/hzhang86/chapel/chapel-llvm36/chapel/third-party/llvm/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp:839:
void llvm::DwarfUnit::addType(llvm::DIE&, llvm::DIType,
llvm::dwarf::Attribute): Assertion `Ty && "Trying to add a type that
doesn't
2014 Dec 19
2
[LLVMdev] question about the DIBuilder::createStructType
Hello, Richard
Thanks a lot !
On Fri, Dec 19, 2014 at 10:04 AM, RICHARD STUCKEY <
richard.stuckey at virgin.net> wrote:
>
> Hi, Hui Zang,
>
> It helps to remember that at runtime a variable of a structure type has to
> be allocated store, and to think about how that variable is laid out in
> store.
>
> You must use createMemberType to create a DIType for *each*
2015 Apr 15
2
[LLVMdev] where is type symbol table now
Hello,
I found some source code using llvm 2.5 that has a call to
Module::getTypeName(Type*), which I can't find it anymore in llvm newer
than 3.3, so how can I get the name of a type(e.g a user-defined structure)
if we have Type* of that ?
Besides, I checked that old llvm maintains a TypeSymbolTable that enabled
type name look-up, so what's the replacement and mechanism of it in the
2015 Feb 24
2
[LLVMdev] difference between MDNode and NamedMDNode
Hello,
I'm a little confused by the definition of metadata node: does it have to
contain different types of data ? And does a named metadata have to have a
string name ? I know the named metadata can only contain metadatas
e.g.
!3=metadata !{metadata !1, metadata !2}
Does it belong to NamedMDNode or MDNode ?
Thanks!
--
Best regards
Hui Zhang
-------------- next part --------------
An
2014 Oct 01
3
[LLVMdev] need help on llvm support for Chapel
Hello,
I don't know if anyone gets familiar with the llvm Chapel front end, it's
version 3.3 and comes within Chapel source package. I'm trying to parse the
.bc code generated from a simple helloworld chapel program.
Just run a basic Hello pass on the code (default one in the llvm source
code) that prints out all the function names in the module. However, it
prints a bunch of
2015 Feb 02
2
[LLVMdev] question about the 3th and 4th arguments in the registration function
Hello,
I'm a little confused about the 3th and 4th arguments in the registration
function, explained here:
http://llvm.org/releases/3.3/docs/WritingAnLLVMPass.html
e.g
static RegisterPass<Hello> X("hello", "Hello World Pass",
false /* Only looks at CFG */,
false /* Analysis Pass */);
"Lastly, we
2014 Sep 30
2
[LLVMdev] the difference of debug information descriptor between versions
Hello,
Do you know where I can find the correct metadata layout in the source code
package (which file)? I found a source code that used llvm 2.5 following
a slightly different metadata layout as what I read on
http://llvm.org/docs/SourceLevelDebugging.html#debugger-intrinsic-functions,
which should be compatible with the latest 3.6 version, so where can I
check the detailed difference in each
2015 Mar 11
2
[LLVMdev] how to know whether a function is a declaration or definition
Hello,
I found a function call Function::isDeclaration() in llvm 2.5 (I know
that's ancient...), which is useful to me, but I can't find it in the later
version 3.3, nor the latest 3.7.....Therefore, is there an alternative way
to check whether the function is just a declaration or a definition ?
PS: I read the source code of llvm 2.5, and found isDeclaration is simply
to check if the
2014 Dec 18
2
[LLVMdev] question about the DIBuilder::createStructType
Hello,
I'm using DIBuilder to create debugging information, I'm not clear about
two things:
[1] Could you help explain the meaning and the difference
between"alignment" and "offset" of a type ?
e.g class Actor{
int age;
const char* name;
}
Besides, I found the denotation of createMemberType and createStructType
both have "Member
2015 Jan 19
3
[LLVMdev] Assertion: replaceAllUses of value with new value of different type! being thrown all of a sudden
> On 2015-Jan-19, at 12:38, Frédéric Riss <friss at apple.com> wrote:
>
>
>> On Jan 19, 2015, at 12:04 PM, Christian Schafmeister <chris.schaf at verizon.net> wrote:
>>
>>
>> I forgot to mention this in my initial email.
>>
>> The build of LLVM that I was using was commit a0d5d7aed8e177cea381b3d054d80c212ece9f2c
>> The date on the
2015 May 27
3
[LLVMdev] how to fix this "Expected no forward declarations!" assertion fail
Hello, Everyone
I'm using llvm 3.6 DIBuilder module to build the debug information for
Chapel language(the Chapel-llvm front end works fine). When I run the test
program, I got these assertions failed:
!718
Expected no forward declarations!
!719
Expected no forward declarations!
!720
Expected no forward declarations!
!721
Expected no forward declarations!
!722
All nodes should be resolved!
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():
2015 May 21
2
[LLVMdev] [LLVM 3.6.0] Metadata/Value split and RAUW.
Hello everyone,
If I understand correctly after the Metadata/Value split the Metadata support of RAUW is limited by ValueAsMetadata and MDNodeFwdDecl (i.e. until cycled in MDNode are not resovled).
And my question is. Is where any way to replace an MDNode which is referenced by other MDNodes w\o iterating over all MDNodes in LLMVContext to find and replace those references? Unfortunately I
2014 Dec 11
2
[LLVMdev] Metadata/Value split has landed
On Wed, Dec 10, 2014 at 05:27:45PM -0800, Duncan P. N. Exon Smith wrote:
> +zalman at google.com
>
Hi Duncan,
This patch plus another small change fixes the assertion failure for
me. With the patch alone, the void* overload of addGarbageObject()
was being used by MDNode::getTemporary(), so I had to cast the object as
an MDNode*:
diff --git a/lib/IR/Metadata.cpp b/lib/IR/Metadata.cpp
2014 Dec 11
2
[LLVMdev] Metadata/Value split has landed
I committed:
r224058 = 966942da9e68b59c31ce770e7f94c55a63482c6b
r224060 = da75f7277e3a129aed8ef8aa4e0d84de40b76fd4
r224061 = f88e4c8e9171045454b2c8e05054c2af8da3fe4f
Let me know if somehow you're still hitting the problem.
r224061 removes leak detection entirely from `MachineInstr`. There aren't
any leaks to be had there, since they're allocated in a custom allocator.
They're