Displaying 5 results from an estimated 5 matches for "lhss".
Did you mean:
less
2007 Jul 24
0
[LLVMdev] LHS of an expression
...some way that i can get only the Value* and not the entire
> Instruction* ?
> Please help.
I'm not sure I understand the problem. Instructions are inherited from
Values, so you can store both Store and Malloc instructions in the
same vector. You will, of course, need to get the different LHSs of
them. To do this, use something along the lines of:
std::vector<Value*> LHSs;
for (std::vector<Value*>::iterator I = v.begin(), E = v.end(); I != E; ++I) {
if (StoreInst *S = dyn_cast<StoreInst*>(*I)) {
// Get the LHS for the store instruction
LHSs.push_back(S->g...
2007 Jul 23
2
[LLVMdev] LHS of an expression
...ve figured out
> already). You can think of the variables that are printed out in the
> .ll file as syntactic sugar to help with debugging. So, if you want
> variables in a set, you can do something like:
>
> MallocInst *M = new MallocInst(...);
>
> std::set<Instruction*> LHSs;
>
> LHSs.insert(M);
>
> -bw
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
2007 Jul 23
0
[LLVMdev] LHS of an expression
...e the store instr, which you've figured out
already). You can think of the variables that are printed out in the
.ll file as syntactic sugar to help with debugging. So, if you want
variables in a set, you can do something like:
MallocInst *M = new MallocInst(...);
std::set<Instruction*> LHSs;
LHSs.insert(M);
-bw
2007 Jul 23
2
[LLVMdev] LHS of an expression
hello all,
If i have an IR instruction of the form
%tmp10 = call sbyte* %malloc( uint 4 ) ; <sbyte*> [#uses=1]
%tmp10 = cast sbyte* %tmp10 to int* ; <int*> [#uses=1]
store int* %tmp10, int** %t
which is nothin but a malloc call how can i get %tmp into maybe a variable
set.
If i have a store instruction then it is pretty much simpler as the
getOperand(1) can give
2012 Sep 04
1
virt-sparsify broken after recent changes
...fs.Handle_closed("disk_format")
...
#!/bin/bash
set -x
img=disk.img
sprs=disk.sparse.img
kname=vda
test -f ${img} && exit 1
test -f ${sprs} && exit 1
find /usr/share/ -type f -print0 | xargs -0 cat | dd bs=$(( 1024 * 1024 )) count=$(( 42 )) iflag=fullblock of=${img}
ls -lhsS ${img}
time guestfish -v <<_EOF_
add ${img}
run
part-disk /dev/${kname} mbr
blockdev-rereadpt /dev/${kname}
mkfs ext2 /dev/${kname}1
blockdev-rereadpt /dev/${kname}
mount /dev/${kname}1 /
mkdir /y
ls /
ls /y
umount /
sync
_EOF_
time virt-sparsify -v ${img} ${sprs}
ls -lhsS ${img} ${sprs}