similar to: [LLVMdev] unique id for a llvm Instruction

Displaying 20 results from an estimated 40000 matches similar to: "[LLVMdev] unique id for a llvm Instruction"

2013 Aug 29
2
[LLVMdev] unique id for a llvm Instruction‏
what if another pointer points to the same instruction? Is this possible to happen? Eirini -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130829/ad6ba4bb/attachment.html>
2013 Aug 29
0
[LLVMdev] unique id for a llvm Instruction
> > > what if another pointer points to the same instruction? > You can have many pointers to the same instruction. However, the address in memory where that instruction lives is unique. Instruction pointers (or Value pointers) are thus commonly used as keys in hash tables or similar. Instructions or Values are almost never copied, so that you won't find the same instruction at
2013 Aug 29
0
[LLVMdev] unique id for a llvm Instruction
Hello, i would like to ask, is there a way to get a unique id for each llvm instruction? Eirini -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130829/34741ae5/attachment.html>
2013 Sep 24
1
[LLVMdev] get the address in memory where an instruction lives
On 24.09.2013, at 17:38, Eirini Psallida <eirini.psallida at gmail.com <http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev>> wrote: >* Hi, *>* i want to get the address in memory of an instruction pointer and use it as a key in my tables.*>* i iterate over the instructions in LLVM IR like this:*>* for (Module::iterator fi = Mod->begin(), fi_end = Mod->end(); fi !=
2013 Sep 24
2
[LLVMdev] get the address in memory where an instruction lives
Hi, i want to get the address in memory of an instruction pointer and use it as a key in my tables. i iterate over the instructions in LLVM IR like this: for (Module::iterator fi = Mod->begin(), fi_end = Mod->end(); fi != fi_end; ++fi) { for (inst_iterator I = inst_begin(fi), E = inst_end(fi); I != E; ++I) { Instruction *ii = dyn_cast<Instruction>(&*I);
2013 Jul 01
1
[LLVMdev] Problem with building llvm and running project
Hello, i am new to LLVM and i want to create my own project with a cpp file which calls llvm functions and then run it. I download clang source, llvm source and compiler-rt source. I tried to configure and build llvm using this http://llvm.org/docs/GettingStarted.html#getting-started-with-llvm but it failed because .h files included on top of the Hello.cpp couldn't found. Can you tell me
2013 Jul 11
0
[LLVMdev] lower-lever IR (A-normal form)
I would like to create some tables for my instructions in the IR. For example a table that has all the store instructions. I want all the arguments to a function or instruction or constant etc to be trivial. So to fix my previous example instead of having : call void @llvm.memcpy.i32(i8* %19, i8* getelementptr inbounds ([2 x [2 x [3 x i8]]]* @main.s, i32 0, i32 0, i32 0, i32 0), i32 12, i32
2013 Oct 17
1
[LLVMdev] get the value of a Constant in LLVM IR
Hello, i parse the llvm IR (llvm-3.3 version) and when i meet a constant, i want to get it's value. eg i32 5, i want to get the 5. I am interested in ConstantInt-ConstantFP-ConstantArray-ConstantStruct subclasses. Things are a bit easier with ConstantInt and ConstantFP constants but how could i get the value of a ConstantArray? The
2012 Jun 14
2
[LLVMdev] Bitcode Instruction ID
Hello, I'm modifying the LLI interpreter to count the number of times that each instruction in a bitcode file is interpreted, however to do this I need to assign an identifier to each instruction in the file. Is there currently any kind of instruction ID that I could use to solve this? César.
2012 Jun 14
0
[LLVMdev] Bitcode Instruction ID
Hi César, > I'm modifying the LLI interpreter to count the number of times that > each instruction in a bitcode file is interpreted, however to do this > I need to assign an identifier to each instruction in the file. Is > there currently any kind of instruction ID that I could use to solve > this? yes, the address of the instruction. Ciao, Duncan.
2012 Aug 11
2
[LLVMdev] unique instruction ids
Hi All, I am trying to find out whether llvm assigns unique numeric ids to instructions? George -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120811/37d4b82e/attachment.html>
2012 Aug 11
0
[LLVMdev] unique instruction ids
George Baah wrote: > Hi All, > I am trying to find out whether llvm assigns unique numeric ids to > instructions? No, we use the Instruction* wherever we want to refer to a unique instruction. I suppose you could cast that to an integer. Nick
2012 Aug 11
1
[LLVMdev] unique instruction ids
I am wondering whether the values of the casts are guaranteed to be unique for every instruction. George On Sat, Aug 11, 2012 at 7:26 PM, Nick Lewycky <nicholas at mxc.ca> wrote: > George Baah wrote: > >> Hi All, >> I am trying to find out whether llvm assigns unique numeric ids to >> instructions? >> > > No, we use the Instruction* wherever we want
2017 May 04
6
Computing unique ID of IR instructions that can be mapped back
I am writing an analysis pass on LLVM which requires to: [1] generate unique, positive ID corresponding to each instruction [2] the ID must survive across runs [3] given the ID, corresponding instruction has to be mapped back For [1], the general suggestion is to use the Value* instr_ptr associated to each instruction. The instr_ptr points to specific instruction in memory, hence
2019 Jan 20
2
AD ID mapping back end - must IDs be unique over all objects?
Reading the wiki page on the topic above, the following doesn't seem entirely clear to me: must all used IDs be unique, or do just the user/computer accounts and the groups, respectively, need unique IDs? Simply put, is it possible that a user has a uidNumber that is the same as the gidNumber of a group? Thanks, Viktor
2017 May 09
2
Computing unique ID of IR instructions that can be mapped back
On 5/8/17 6:40 PM, Robinson, Paul via llvm-dev wrote: > (adding back llvm-dev) > > > > Is there any standard means to add an extra field to LLVM IR instructions? > > > > Your description implies that you are not intending to change the > on-disk format, so it's simple: > > It is a class. Change the source to add a field to it. Use it as you wish. An
2010 Jun 20
1
how to convert a set of strings to a list of unique numeric id?
Hi, I have been a matlab user and is learning R. I want to convert a large list of strings to a list of unique numeric ids to reduce storage space. For example, there is a string list (there are duplicates) ABCDDDD ACCDEDF ACCGEDF ACCGEGF ..... ACCDEDF ACCGEGF and I want to have a corresponding numeric id list 1 2 3 4 .... 2 4 In matlab, the 'unique' function can do this in
2012 Feb 21
1
sqlite create new unique id
Hi everyone, I am trying to insert a row in sqlite table with my own unique id. I want to create unique id using sqlite internal function last_insert_rowid() which returns the next max rowid of the table which is always unique. I tested this using sqlite and it works fine but when i run the same query using RSQlite from r prompt, my query doesn't create new unique id. last_insert_rowid()
2011 Sep 20
2
Converting ID Numbers to Unique ID Number
First off, let me apologize for the elementary question. I'm obviously a novice. Here's a stripped version of my problem. March foreign id = 1234, my id = 1 foreign id = 1235, my id = 2 foreign id = 1236, my id = 3 So we are adding new people for April, and things don't necessarily come in order: April foreign id = 1236 foreign id = 5000 foreign id = 1234 foreign id = 1235 foreign
2017 May 09
2
Computing unique ID of IR instructions that can be mapped back
> Isn't Instruction* a pointer to the instruction in memory? If so, it'll change across runs Correct, but none of this is meant to be stored across runs, so the actual address doesn't matter. You recompute the map every time your IR is loaded. On Mon, May 8, 2017 at 7:34 PM, Dipanjan Das via llvm-dev < llvm-dev at lists.llvm.org> wrote: > > > On 8 May 2017 at