Displaying 8 results from an estimated 8 matches for "dhash".
Did you mean:
hash
2020 Sep 30
2
Creating a global variable for a struct array
Let me clarify my question.
I have a struct array h1 as follows:
dhash h1[10];
I want to get a Constant* to variable h1. It looks like I can use ConstantStruct::get(StructType*, ArrayRef<Constant *>) to do this.
My question is how to get the second argument of type ArrayRef<Constant *> from the above variable h1.
Thanks,
Chaitra
________________________...
2020 Sep 22
2
Creating a global variable for a struct array
Hello,
I would like to create a global variable for the following struct array, h1
dhash* h1 = new dhash[10];
typedef struct dhash{
char* filenm;
dlist* llist;
}dhash;
typedef struct dlist{
int soffst;
int eoffst;
uint8_t* dptr;
}dlist;
I also need to allocate space for:
1) the field llist in struct dhash which is a pointer to another struct dlist and
2)...
2020 Oct 01
2
Creating a global variable for a struct array
Thank you very much. The code to initialize h1 to non-zero values was what I was looking for.
It's almost working except for a type mismatch wrt dlist* llist field of h1.
dlist static_lst[10] = { {1, 5, NULL}, ... };
dhash h1[10] = {{"myfile.txt", static_lst}, ... };
Along the lines of the code you had sent, I created a GlobalVariable* llist of type [10 x %struct.dlist]* for the field dlist* llist in h1. But this results in an LLVM ERROR: Type mismatch in constant table!.
How do I fix this error ?
Thanks...
2020 Oct 01
3
Creating a global variable for a struct array
...x %struct.dlist]" because that's what you want storage
for. Then the GlobalVariable itself will be a Constant of type "[10 x
%struct.dlist]*".
Yes, I verified that this is the case.
I enabled assertions and the error seems to occur while creating GlobalVariable for both struct dhash and struct dlist.
Here is a simpler version of the code causing error:
//struct dhash
typedef struct dhash{
char* filenm;
int n;
}dhash;
//create global variable to hold filename string
Constant *filenmInit = ConstantDataArray::getString(M.getContext(), "myfile.txt");
Constant *file...
2000 Apr 05
1
pwload / reversed pwget
Hi,
I would be *VERY* interested in a reversed pwget (see
http://www.martnet.com/~johnny/exploits/microsoft/NT/WinNT.passwordhashes.deobfuscation.html)
to be able to automaticaly set first-time NT passwords
('smbpasswd -r' will only work if you first enter the 'previous'
password) on our PDC (evt. remote from UNIX through some tcp (ssh?)
connection).
Bjart Kvarme seems to have written such a tool, called ...
2012 Nov 29
2
[LLVMdev] problem trying to write an LLVM register-allocation pass
I have a new problem: Register RBP is used in a function foo. (I am not
allocating RBP to any virtual register, the instances of RBP in function
foo are in the machine code when my register allocator starts.)
Function foo calls function bar. Register RBP is not saved across the
call, though it is live after the call. Function bar includes a virtual
register. The code that I'm using to
2012 Dec 01
0
[LLVMdev] problem trying to write an LLVM register-allocation pass
...size, current_max_xpairs;
extern int current_max_template_xpairs, current_max_dfas;
extern int lastdfa, *nxt, *chk, *tnxt;
extern int *base, *def, *nultrans, NUL_ec, tblend, firstfree, **dss, *dfasiz;
extern union dfaacc_union
{
int *dfaacc_set;
int dfaacc_state;
} *dfaacc;
extern int *accsiz, *dhash, numas;
extern int numsnpairs, jambase, jamstate;
extern int end_of_buffer_state;
extern int lastccl, *cclmap, *ccllen, *cclng, cclreuse;
extern int current_maxccls, current_max_ccl_tbl_size;
extern unsigned char *ccltbl;
extern char nmstr[2048];
extern int sectnum, nummt, hshcol, dfaeql, numeps, e...
2013 Jul 15
21
[PATCH 00 of 21 RESEND] blktap3/drivers: Introduce tapdisk server.
This patch series copies the core of the tapdisk process from blktap2, with
updates coming from blktap2.5.
Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>