search for: ubyt

Displaying 20 results from an estimated 99 matches for "ubyt".

Did you mean: byt
2007 Mar 01
2
[LLVMdev] Version 1.9 SSA form question
int %nlz10(uint %param.x) { %.t3 = shr uint %param.x, ubyte 1 ; <uint> [#uses=1] %.t4 = or uint %.t3, %param.x ; <uint> [#uses=2] %.t7 = shr uint %.t4, ubyte 2 ; <uint> [#uses=1] %.t8 = or uint %.t7, %.t4 ; <uint> [#uses=2] %.t11 = shr uint %.t8, ubyte 4...
2006 Mar 16
2
[LLVMdev] Stupid '-load-vn -licm' question (LLVM 1.6)
...e %regex6 and %regex2 blocks below. I've tried various alias analysis implementations either alone or in combination. Any thoughts? I'm sure that this will prove embarrassingly obvious. :-) Cheers, Eric ; ModuleID = 'regex-opt.bc' implementation ; Functions: bool %matches(ubyte* %begin, ubyte* %end) { entry: %scan_end = getelementptr ubyte* %end, int -1 ; <ubyte*> [#uses=1] br label %loop_test regex6: ; preds = %loop_test %c8 = load ubyte* %iter ; <ubyte> [#uses=1] %matches9 = seteq ubyte %c8, 9...
2002 Sep 25
3
[LLVMdev] question about GetElementPtr Instruction
I have a question about GetElementPtr. Suppose I have an GetElementPtr Instruction GI: %reg = getelementptr %ST* %s, uint 1, ubyte 2, ubyte 1, uint 5, uint 13 I want to check if this is the reference of a component of a structure, how can I do that? Should I check which operand of this instruction is 'ubyte' type? How can I do that in code? should I use ubyte *a = dyn_cast<ubyte>GI.getoperand(i) or something...
2006 Mar 17
0
[LLVMdev] Stupid '-load-vn -licm' question (LLVM 1.6)
..."-licm -load-vn -gcse" instead of "-load-vn -licm" -Chris > Any thoughts? I'm sure that this will prove embarrassingly obvious. :-) > > Cheers, > Eric > > ; ModuleID = 'regex-opt.bc' > > implementation ; Functions: > > bool %matches(ubyte* %begin, ubyte* %end) { > entry: > %scan_end = getelementptr ubyte* %end, int -1 ; <ubyte*> > [#uses=1] > br label %loop_test > > regex6: ; preds = %loop_test > %c8 = load ubyte* %iter ; <ubyte> [#uses=1] >...
2007 Feb 13
2
[LLVMdev] Unused malloc/free don't get optimized
Hi, i have some code that allocate some memory, store the pointer to a variable, read it back and deallocates it, like this: int %main(int %argc, ubyte** %argv) { %c_19 = alloca ubyte* %malloc_206 = malloc ubyte, uint 10 store ubyte* %malloc_206, ubyte** %c_19 %tmp_207 = load ubyte** %c_19 free ubyte* %tmp_207 ret int 0 } i expected the optimized to remove everything, but after running it the code i get is: int %main(int %argc, ubyte** %argv)...
2002 Sep 26
2
[LLVMdev] question about GetElementPtr Instruction
You are correct, ubyte 2 simply means 3rd element of the structure. This quantity is always constant (it specifies the field number), so we could have used any signed or unsigned integer type for it instead of ubyte. UByte means we are limited to at most 256 structure fields but it also makes the bytecode representatio...
2004 May 11
2
[LLVMdev] Problems accessing structs
...The second member ( int()* ) is a pointer to the %getchar() function. I want to call getchar using this function: int "callmyKernelgetchar_kernel"("Kernel"* "myKernel") { "PTRMAP" = getelementptr "Kernel"* "myKernel", long 0, ubyte 0 "MAP" = load "myKernelMap"** "PTRMAP" "getchar_kernelPTR" = getelementptr "myKernelMap"* "MAP", long 0, ubyte 1 %tmp = load int ()** "getchar_kernelPTR" "tmp_result" = call int ()* %tmp() ret int "tmp_result&quo...
2015 Aug 24
4
[PATCH] nv50: avoid using inline vertex data submit when gl_VertexID is used
...ak; diff --git a/src/gallium/drivers/nouveau/nv50/nv50_program.h b/src/gallium/drivers/nouveau/nv50/nv50_program.h index 5d3ff56..f4e8e94 100644 --- a/src/gallium/drivers/nouveau/nv50/nv50_program.h +++ b/src/gallium/drivers/nouveau/nv50/nv50_program.h @@ -76,6 +76,7 @@ struct nv50_program { ubyte psiz; /* output slot of point size */ ubyte bfc[2]; /* indices into varying for FFC (FP) or BFC (VP) */ ubyte edgeflag; + ubyte vertexid; ubyte clpd[2]; /* output slot of clip distance[i]'s 1st component */ ubyte clpd_nr; } vp; diff --git a/...
2004 May 11
0
[LLVMdev] Problems accessing structs
...) is a pointer to the %getchar() function. > > I want to call getchar using this function: > > int "callmyKernelgetchar_kernel"("Kernel"* "myKernel") > { > "PTRMAP" = getelementptr "Kernel"* "myKernel", long 0, ubyte 0 > "MAP" = load "myKernelMap"** "PTRMAP" > "getchar_kernelPTR" = getelementptr "myKernelMap"* "MAP", long 0, ubyte 1 > %tmp = load int ()** "getchar_kernelPTR" > "tmp_result" = call int ()* %tmp() > ret...
2004 May 03
2
[LLVMdev] Problems with getelementptr
...e*)*} "Kernel" = type {"myKernelMap"*} ;Allocating...OK "myKernelMapInstance" = malloc "myKernelMap" %myKernel = malloc "Kernel" ;Assigning the map to the class...OK "myKernelMapPTR" = getelementptr "Kernel"* %myKernel, long 0, ubyte 0 store "myKernelMap"* "myKernelMapInstance", "myKernelMap"** "myKernelMapPTR" ; Try to get pointer to the functionPointer in the map, NOT OK! :-( %puts_kernelPTR = getelementptr "Kernel"* %myKernel, long 0, ubyte 0, long 0, ubyte 0 store int (sby...
2007 Jan 14
0
[LLVMdev] Request documentation for global var syntax
On Thu, 11 Jan 2007, Schimmel, Mark wrote: > file://docs/LangRef.html#globalvars > > The section describing the definition of global vars discusses that you > can specify an alignment and can also specify a section. Could someone > provide an example that works in gccas in release 1.9 for both defining > which section the var is assigned to and defining the variables >
2007 Mar 13
0
[LLVMdev] Forward reference in type declarations in LLVM 1.9
%TCDef = type { [16 x ubyte], [16 x ubyte], [16 x ubyte], [16 x ubyte], [64 x ubyte], ushort, %anonymous.5, %anonymous.5, %anonymous.5, uint, uint, uint, ushort, uint, uint, uint, uint } %anonymous.5 = type { ubyte, ubyte, ubyte, ubyte } I have a parser that reads LL files but doesn't handle forward references to struct...
2007 Jan 11
3
[LLVMdev] Request documentation for global var syntax
file://docs/LangRef.html#globalvars The section describing the definition of global vars discusses that you can specify an alignment and can also specify a section. Could someone provide an example that works in gccas in release 1.9 for both defining which section the var is assigned to and defining the variables alignment? Also, is there another document that describes how you define sections
2002 Sep 27
0
[LLVMdev] Another question about GetElementPtr Instruction
...saying a = &(b[0]) (== b). I couldn't quite make it out from reading the language reference. So I want to go ahead and transform uses of %reg228-mod by replacing them with uses of %N.1, in this example. Is this right or am I way off? Thanks for any help, -Brian > You are correct, ubyte 2 simply means 3rd element of the structure. This > quantity is always constant (it specifies the field number), so we could > have used any signed or unsigned integer type for it instead of ubyte. > UByte means we are limited to at most 256 structure fields but it also makes > the by...
2004 May 03
0
[LLVMdev] Problems with getelementptr
...ot;myKernelMapInstance" = malloc "myKernelMap" > %myKernel = malloc "Kernel" Okay, these are of type %myKernelMap and %Kernel, respectively. > ;Assigning the map to the class...OK > "myKernelMapPTR" = getelementptr "Kernel"* %myKernel, long 0, ubyte 0 This gives you a pointer to the '%myKernelMap*' in the Kernel type. > store "myKernelMap"* "myKernelMapInstance", "myKernelMap"** "myKernelMapPTR" And this stores the pointer as you would expect. > ; Try to get pointer to the functionPoin...
2007 Feb 14
0
[LLVMdev] Unused malloc/free don't get optimized
...Feb 2007, Nicola Lugato wrote: > Hi, i have some code that allocate some memory, store the pointer to a > variable, read it back and deallocates it, like this: ok > i expected the optimized to remove everything, but after running it > the code i get is: > > int %main(int %argc, ubyte** %argv) { > %malloc_206 = malloc [10 x ubyte] > %malloc_206.sub = getelementptr [10 x ubyte]* %malloc_206, int 0, int 0 > free ubyte* %malloc_206.sub > ret int 0 > } > > Why didn't he optimized it out? This looks like a simple missed optimization. > and where did...
2006 Mar 17
3
[LLVMdev] Stupid '-load-vn -licm' question (LLVM 1.6)
...-load-vn -licm" That works! Thank you. The bytecodes look really good--not only are the loads eliminated, but the tests are actually reduced to a switch statement using '-anders-aa -load-vn -gcse -simplifycfg -instcombine': regex6: ; preds = %loop_test %c8 = load ubyte* %iter ; <ubyte> [#uses=1] switch ubyte %c8, label %loop_step [ ubyte 97, label %ret_true ubyte 98, label %ret_true ] Unfortunately, this generates really weird code on the LLVM 1.6 PowerPC backend: LBB_matches_1: ; regex6...
2005 Jun 09
1
[LLVMdev] gmake check failures on FreeBSD 5.4
...llvm/obj/../test/Regression/Transforms/InstCombine/2004-11-27-SetCCForCastLargerAndConstant.ll: %Y = cast sbyte %SB to uint ; <uint> [#uses=1] %Y = cast sbyte %SB to int ; <int> [#uses=1] %Y = cast sbyte %SB to int ; <int> [#uses=1] %Y = cast ubyte %SB to uint ; <uint> [#uses=1] %Y = cast ubyte %SB to int ; <int> [#uses=1] %Y = cast sbyte %SB to uint ; <uint> [#uses=1] %Y = cast sbyte %SB to int ; <int> [#uses=1] %Y = cast sbyte %SB to int ; <int> [#uses=1]...
2002 Sep 14
1
[LLVMdev] MP1: names
Does our pass need to ensure that the new names it creates for the field allocations are, in fact, unique? -- Casey Carter Casey at Carter.net ccarter at uiuc.edu AIM: cartec69
2011 May 04
1
Problems saving ff objects
...xamples from the help of ffsave. When I ran, however : (copied from the help) message("let's create some ff objects") n <- 8e3 a <- ff(sample(n, n, TRUE), vmode="integer", length=n, filename="d:/tmp/a.ff") b <- ff(sample(255, n, TRUE), vmode="ubyte", length=n, filename="d:/tmp/b.ff") x <- ff(sample(255, n, TRUE), vmode="ubyte", length=n, filename="d:/tmp/x.ff") y <- ff(sample(255, n, TRUE), vmode="ubyte", length=n, filename="d:/tmp/y.ff") z <- ff(sample(255, n, TRUE), vmod...