Displaying 20 results from an estimated 300000 matches similar to: "[LLVMdev] unique id for a llvm Instruction"
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
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
1
[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/ca483d68/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);
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
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 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
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
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>
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
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
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
2015 May 07
2
[LLVMdev] Integer ID for LLVM::Instruction*?
David,
As you suggested, I try to compile the following test code:
*include "llvm/IR/Instruction.h"#include "stdint.h"extern void
callback(intptr_t);void foo(){ llvm::Instruction* i; intptr_t
zzzz=static_cast<intptr_t>(i); callback(zzzz);}*
but got this compilation error:
* 'intptr_t' (aka 'long') is not allowed intptr_t
2015 May 06
5
[LLVMdev] Integer ID for LLVM::Instruction*?
Hi,
I wonder whether we can easily retrieve an LLVM instruction ID that
uniquely identifies the instruction. In my case, I need to avoid using
llvm::Instruction* directly. Given an 'inst' of type llvm::instruction*, is
there some readily usable method as simple as "int id = inst->id( )"?
Thanks.
Zhoulai
-------------- next part --------------
An HTML attachment was
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
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()
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
2018 Feb 25
1
reshaping column items into rows per unique ID
Hi Allaisone,
I took a slightly different approach but you might find this either as or
more useful than your approach, or at least a start on the path to a
solution you need.
df1 <-
data.frame(CustId=c(1,1,1,2,3,3,4,4,4),DietType=c("a","c","b","f","a","j","c","c","f"),