Displaying 20 results from an estimated 9000 matches similar to: "[LLVMdev] attach metadata to argument/basicblock/function"
2009 Nov 01
0
[LLVMdev] Something wrong with my libpthread.so
Hi,
On Sat, Oct 31, 2009 at 11:42 AM, Nan Zhu <zhunansjtu at gmail.com> wrote:
> Hi,all
>
> I tried to run the generated whole-program bitcode of BIND,but I got some
> information:
>
> 0 lli 0x0000000000feda16
> 1 lli 0x0000000000fed88f
> 2 libpthread.so.0 0x0000003df340eee0
> 3 libc.so.6 0x0000003df28332f5 gsignal + 53
>
2009 Nov 01
1
[LLVMdev] Something wrong with my libpthread.so
Mahadevan R wrote:
> Hi,
>
> On Sat, Oct 31, 2009 at 11:42 AM, Nan Zhu <zhunansjtu at gmail.com> wrote:
>> Hi,all
>>
>> I tried to run the generated whole-program bitcode of BIND,but I got some
>> information:
>>
>> 0 lli 0x0000000000feda16
>> 1 lli 0x0000000000fed88f
>> 2 libpthread.so.0
2010 Apr 24
2
[LLVMdev] Proposal for Adding MetaData to a BasicBlock
Hello group,
Per my posting on the Clang Newsgroup.
I'm interested in doing some loop optimizations, towards this end I would
like to add some custom Metadata to a Loop header.
Loops in LLVM are represented using BasicBlocks, but unfortunately you can
NOT add MetaData to a BasicBlock. Although you can add Metadata to an
instruction. So I'm proposing to add the Metadata manipulation
2011 Oct 17
0
[LLVMdev] Variable name from metadata
Closing this, found below links to get variable name.
http://groups.google.com/group/llvm-dev/browse_thread/thread/1a239f0d24db2b5c
http://markmail.org/message/fj5qg44vyjsdde7k#query:+page:1+mid:5zhmyncisenomcga+state:results
I could do following, to get the required information.
const CallInst *CI = dyn_cast<CallInst>(Insn);
int numoperands =
2011 Oct 17
2
[LLVMdev] Variable name from metadata
Hi All,
Can we extract name of variable name from "MDNode" ?
1. Neither temp_MDNode->getName() nor temp_MDNode->getValueName() give me "global_int" which is name of a variable.
2. I tried below ways as well.
DIVariable DV(mdnode1);
Value *v = mdnode1->getOperand(0);//gives add 0x69
3. I have written below code to reach till variable name.
LLVMIname is
2016 Nov 14
2
getting the value back from metadata
Hello,
I'm trying to extract the value out of my MDNode, but for some reason I can't.
For example, if one part of the code gets an MDNode that was created as follows:
Metadata* vals[2] =
{ ValueAsMetadata::get(&F), ValueAsMetadata::get(ConstantInt::get(context, 135)) };
MDNode* mdnode = MDNode::get(context, vals);
Is it possible to extract the value of the constant int
2009 Oct 31
3
[LLVMdev] Something wrong with my libpthread.so
Hi,all
I tried to run the generated whole-program bitcode of BIND,but I got some
information:
0 lli 0x0000000000feda16
1 lli 0x0000000000fed88f
2 libpthread.so.0 0x0000003df340eee0
3 libc.so.6 0x0000003df28332f5 gsignal + 53
4 libc.so.6 0x0000003df2834b20 abort + 384
5 libc.so.6 0x0000003df282c2fa __assert_fail + 234
6 lli
2011 Dec 21
0
[LLVMdev] creating new Metadata
> Dear llvm-ers,
> I am trying to attach a customized metadata to llvm instructions.
> Let's say, I want to attach some number to each instruction.
> I am trying to use
>
> void Instruction::setMetadata(unsigned KindID, MDNode* Node)
>
> but I am not sure how to create a brand new instance of an MDNode.
> Do you have any code samples demonstrating how to do that?
2012 Jan 24
0
[LLVMdev] [cfe-dev] [RFC] Module Flags Metadata
>> I have only one real comment -- this violates the contract and spirit of LLVM's metadata design. You're specifically encoding semantics in metadata, but the principle of metadata is that a program with all metadata stripped has the same behavior as one with the metadata still in place.
This is a simplified understanding of semantics. As I understand, the expected metadata design
2011 Dec 22
0
[LLVMdev] creating new Metadata
On 12/21/11 11:24 PM, Oksana Tkachuk wrote:
> Hello,
> Thank you very much for the pointers.
> I am are able to create new MDNodes, filled with some constants, and
> attach them
> to llvm instructions. However, the metadata map is not getting updated
> as expected.
> For example, instead of the expected new entry
If you look at PoolMDPass::runOnModule(), you'll see that
2009 Nov 05
0
[LLVMdev] Debug Information for LLVM 2.6 and TOT
Hi John,
On Thu, Nov 5, 2009 at 8:43 AM, John Criswell <criswell at uiuc.edu> wrote:
> Does the debug facilities in LLVM TOT, at present, maintain information
> better than LLVM 2.6 (i.e., if a front-end puts the debug information in,
> will the optimizations not take it out)? Does the information that the
> llvm-gcc front-end adds comparable to what llvm-gcc in LLVM 2.6 does?
2011 Dec 22
3
[LLVMdev] creating new Metadata
Hello,
Thank you very much for the pointers.
I am are able to create new MDNodes, filled with some constants, and attach
them
to llvm instructions. However, the metadata map is not getting updated as
expected.
For example, instead of the expected new entry
!n = metadata !{some values}
we are getting
!n = metadata !{null}
Do you know what might be wrong? Do we need to enter the MDNodes into the
2018 Apr 27
1
TBAA metadata
Hi,
I am looking at the Type Based Alias Analysis and I am trying to understand why, from what I see, pointsToConstantMemory() never returns true.
It seems that this information should come from the TBAA metadata, in which the Access Tag has an optional 4th field to specify this information.
"Access tags are represented as MDNode s with either 3 or 4 operands. The first operand is an
2009 Sep 11
0
[LLVMdev] [proposal] Extensible IR metadata
I've got a suggestion for a refinement:
Right now, we have classes like DILocation that wrap an MDNode* to
provide more convenient access to it. It would be more convenient for
users if instead of
MDNode *DbgInfo = Inst->getMD(MDKind::DbgTag);
Inst2->setMD(MDKind::DbgTag, DbgInfo);
they could write:
DILocation DbgInfo = Inst->getMD<DILocation>();
2010 Oct 06
0
[LLVMdev] Associating types directly with debug metadata?
>>> Here is another version of the patch. This one includes also a small patch to llvm-gcc so that it generates the type metadata for structures and classes. This one also generates and parses correctly the metadata for .ll files. No .bc support yet. The biggest problem with this version is that it breaks when the compiler/linker performs type reductions, and I don't understand
2013 May 03
0
[LLVMdev] set of integers to metadata
I also tried the following, with no compilation errors, but segfault, core
dumped:
*LLVMContext& C = is->getContext();
Value* values[size];
for(int gy=0;gy<size;gy++){
values[gy]=ConstantInt::getSigned(Type::getInt64Ty(C),array[gy]);
}
llvm::ArrayRef<Value*> bla = values[size];
is->setMetadata("path",MDNode::get(C,bla));*
On Fri, May 3, 2013
2012 Jan 26
2
[LLVMdev] [cfe-dev] [RFC] Module Flags Metadata
On Jan 24, 2012, at 3:39 PM, Devang Patel wrote:
>
>>> I have only one real comment -- this violates the contract and spirit of LLVM's metadata design. You're specifically encoding semantics in metadata, but the principle of metadata is that a program with all metadata stripped has the same behavior as one with the metadata still in place.
>
>
> This is a
2013 May 03
2
[LLVMdev] set of integers to metadata
Hello everyone,
I want to pass a set of integers using metadata but I don't know how. I
have tried:
the integers are in array[]
*1. *
LLVMContext& C = is->getContext();
Value* values[size];
for(int gy=0;gy<size;gy++){
values[gy]=ConstantInt::getSigned(Type::getInt64Ty(C),array[gy]);
}
*is->setMetadata("path",MDNode::get(C,values));*
failes when setMetadata(),
2011 Dec 20
3
[LLVMdev] creating new Metadata
Dear llvm-ers,
I am trying to attach a customized metadata to llvm instructions.
Let's say, I want to attach some number to each instruction.
I am trying to use
void Instruction::setMetadata(unsigned KindID, MDNode* Node)
but I am not sure how to create a brand new instance of an MDNode.
Do you have any code samples demonstrating how to do that?
Due to some tool dependencies, I am using
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