search for: uint

Displaying 20 results from an estimated 737 matches for "uint".

Did you mean: int
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&g...
2007 Sep 05
2
[LLVMdev] reg2mem pass
...n sum; } ------------------------------------------------------------- I could get the corresponding LLVM assembly with llvm-gcc and llvm-dis: ------------------------------------------------------------- int %foo() { entry: br label %bb8.outer bb8.outer: ; preds = %bb10, %entry %indvar26 = phi uint [ 0, %entry ], [ %indvar.next27, %bb10 ] ; <uint> [#uses=2] %sum.0.pn.ph = phi int [ 0, %entry ], [ %sum.1, %bb10 ] ; <int> [#uses=1] %i.0.0.ph = cast uint %indvar26 to int ; <int> [#uses=1] br label %bb8 bb3: ; preds = %bb8 %indvar.next = add uint %indvar, 1 ; <uint&...
2014 Feb 21
2
[LLVMdev] [lldb-dev] How is variable info retrieved in debugging for executables generated by llvm backend?
Thank you, Clayton. It works now! Our debugger server responds "name:J28;generic:fp;bitsize:32;encoding:uint;format:hex;gcc:60;dwarf:60". And I also set other "generic" attributes like sp, pc, ra, arg1~arg8 to related registers. I dig a little and find llvm dwarf generator uses TargetRegisterInfo::getFrameRegister() to obtain frame base, and uses TargetFrameLowering::getFrameIndexReference...
2004 Jun 12
2
[LLVMdev] getelementptr results in seg-fault.
Hi, I'm trying to compile and run the following code-snippet: implementation uint %fie(uint* %x) { %e = getelementptr uint* %x, int 1 ; %f = load uint* %e ret uint 3 } int %main(int %argc, sbyte** %argv) { %z = malloc uint, uint 10 %g = call uint %fie(uint* %z) ret int 0 } But the getelementptr instruction gives a segmentation fault. Have I misunderstoo...
2005 Mar 21
0
[LLVMdev] Recursive Types using the llvm support library
...gt; >In this case, yup. > > > I create test program and assert failed in it: > > { \2 *, sbyte * } How do I decode the \2 in this? I am creating types through this interface and I get quite a mess seen below. And this is relatively simple. Any ideas? -John alloca { { int, uint, sbyte*, \4* (), \4* (\4*), { { int, uint, sbyte*, \4* (), { { int, uint, sbyte*, \4 (), \4 (\4), \8* (\4), \4 (\4) } }* (\4*), \4* (\4*), \4* (\4*), { { int, uint, sbyte*, \4 (), \4 (\4), \8* (\4), \4 (\4) } }* (\4*), \4* (\4*, \4*), \4* (\4*, { { int, uint, sbyte*, \4 (), \4 (\4), \8* (\4), \4 (\...
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 >
2014 Feb 20
2
[LLVMdev] [lldb-dev] How is variable info retrieved in debugging for executables generated by llvm backend?
Thank you, Clayton. This is very helpful. We use the LLDB specific GDB remote extensions, and our debugger server supports "qRegisterInfo" package. "reg 0x3c" is the frame pointer. In the example mentioned above, we have SP = FP - 40 for current call frame. And variable "a" is stored at address (FP + -24) from asm instruction [FP + -24] = R3;; Thus we can conclude
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
2015 May 26
2
[PATCH 2/2] nv30/draw: switch varying hookup logic to know about texcoords
...T_1F_PSIZE, INTERP_POS , 6, 6, 0x00000020 }, > - [TGSI_SEMANTIC_GENERIC ] = { EMIT_4F, INTERP_PERSPECTIVE, 8, 7, 0x00004000 } > + [TGSI_SEMANTIC_TEXCOORD] = { EMIT_4F, INTERP_PERSPECTIVE, 8, 7, 0x00004000 }, > }; > > static boolean > vroute_add(struct nv30_render *r, uint attrib, uint sem, uint *idx) > { > - struct pipe_screen *pscreen = &r->nv30->screen->base.base; > + struct nv30_screen *screen = r->nv30->screen; > struct nv30_fragprog *fp = r->nv30->fragprog.program; > struct vertex_info *vinfo = &r->...
2005 Jul 30
1
[LLVMdev] gmake check failures
The only non-empty output file I can find is ops_after_indvar.ll.out: Instruction does not dominate all uses! %idx = cast int %idx to uint ; <uint> [#uses=1] %tmp. = mul uint %idx, 4 ; <uint> [#uses=1] Instruction does not dominate all uses! %tmp. = mul uint %idx, 4 ; <uint> [#uses=1] %tmp.1 = add uint %P, %tmp. ; <uint> [#uses=1] Inst...
2015 May 26
2
[PATCH 2/2] nv30/draw: switch varying hookup logic to know about texcoords
...[TGSI_SEMANTIC_GENERIC ] = { EMIT_4F, INTERP_PERSPECTIVE, 8, 7, >>> 0x00004000 } >>> + [TGSI_SEMANTIC_TEXCOORD] = { EMIT_4F, INTERP_PERSPECTIVE, 8, 7, >>> 0x00004000 }, >>> }; >>> static boolean >>> vroute_add(struct nv30_render *r, uint attrib, uint sem, uint *idx) >>> { >>> - struct pipe_screen *pscreen = &r->nv30->screen->base.base; >>> + struct nv30_screen *screen = r->nv30->screen; >>> struct nv30_fragprog *fp = r->nv30->fragprog.program; >>>...
2004 Jun 12
1
[LLVMdev] getelementptr results in seg-fault.
Hi! Hmm, ok. I'm using the 1.2 release. Found out that it worked when using long to index getelementptr, but not when using uint, int or ulong. But then I'll try with the CVS code instead. Thank you. , Tobias On Sat, 12 Jun 2004, Reid Spencer wrote: > Hi Tobias, > > I tried your test program on the latest CVS code. Everything worked > fine. > > Can you tell me which version of LLVM you're using? &...
2004 Jun 12
0
[LLVMdev] getelementptr results in seg-fault.
...test program on the latest CVS code. Everything worked fine. Can you tell me which version of LLVM you're using? Reid. On Sat, 2004-06-12 at 08:26, Tobias Nurmiranta wrote: > Hi, > > I'm trying to compile and run the following code-snippet: > > implementation > > uint %fie(uint* %x) { > %e = getelementptr uint* %x, int 1 > ; %f = load uint* %e > ret uint 3 > } > > int %main(int %argc, sbyte** %argv) { > %z = malloc uint, uint 10 > %g = call uint %fie(uint* %z) > ret int 0 > } > > But the getelementptr...
2005 Mar 09
4
[LLVMdev] Recursive Types using the llvm support library
----- Original Message ----- From: "Chris Lattner" <sabre at nondot.org> To: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> Sent: Tuesday, March 08, 2005 6:31 PM Subject: Re: [LLVMdev] Recursive Types using the llvm support library > On Tue, 8 Mar 2005, Vladimir Merzliakov wrote: > >>>> An example where something really simple like the
2005 Jul 29
1
[LLVMdev] How to define a function with multiple return values?
...etOperand(0)); // Legalize the chain. switch (Node->getNumOperands()) { case 2: // ret val [skipped] case 1: // ret void [skipped] default: { // ret <values> [skipped] Does it imply that a ret instruction may return more than one values? ret uint 1, uint 2, ubyte 3, uint 4 But at most one return value is allowed, according to http://llvm.cs.uiuc.edu/docs/LangRef.html#i_ret Syntax: ret <type> <value> ; Return a value from a non-void function ret void ; Return from void function How to define a...
2007 Feb 05
1
[LLVMdev] Misc optimization issue
...es not seem to optimize it down ! ; ModuleID = '/tmp/webcompile/_24843_0.bc' target datalayout = "e-p:32:32" target endian = little target pointersize = 32 target triple = "i686-pc-linux-gnu" implementation ; Functions: int %ltst(int %x) { entry: %x = cast int %x to uint ; <uint> [#uses=1] %tmp13 = setgt int %x, 0 ; <bool> [#uses=1] br bool %tmp13, label %bb, label %bb7 bb: ; preds = %bb, %entry %indvar = phi uint [ 0, %entry ], [ %indvar.next, %bb ] ; <uint> [#uses=2] %i.0.0 = cast uint %indvar to...
2009 Sep 02
3
voice sound like robot voice :)
...3 ), encoderFrameSize( 0 ), encodedFrameBytes( 0 ), pCodecDecoderState( NULL ), sampleRate( VOICE_SAMPLE_RATE ), decoderFrameSize( 0 ) { ///////////////////////////////////////////////////////////////// // Prepare buffers ///////////////////////////////////////////////////////////////// uint voicememsize = Cvoicecodecrawbuffersize + CODEC_MAX_BUFFER_SIZE; byte *voicemem = (byte*)pMemoryMng->Alloc(voicememsize); memset( voicemem, 0, voicememsize ); // raw voice input buffer pCodecRawBuffer = voicemem; pCodecRawBufferCur = pCodecRawBuffer; // voicemem += Cvoiceco...
2005 Nov 01
0
[LLVMdev] [fwd] Re: LLVM Compiler Infrastructure
> Now we got a small but annoying problem. When we get the following C > code to llvm-gcc, > > short test(int x) { > return (short) (x >> 10); > } > > It will generate the following LLVM code: > short %test(int %x) { > %x = cast int %x to uint ; <uint> [#uses=1] > %tmp.2 = shr uint %x, ubyte 10 ; <uint> [#uses=1] > %tmp.3 = cast uint %tmp.2 to short ; <short> [#uses=1] > ret short %tmp.3 > } ok. > Basically, LLVM frontend will first convert an in...
2005 Feb 22
5
[LLVMdev] Area for improvement
...all that was needed was to another round of basic block optimizations after the loop was unrolled, until I saw the actual LLVM bytecodes: void %init_board([7 x sbyte]* %b) { entry: br label %loopexit.1 loopexit.1: ; preds = %loopexit.1, %entry %indvar14 = phi uint [ 0, %entry ], [ %indvar.next15, %loopexit.1 ] ; <uint> [#uses=7] %tmp.10 = getelementptr [7 x sbyte]* %b, uint %indvar14, int 0 ; <sbyte*> [#uses=1] store sbyte 46, sbyte* %tmp.10 %tmp.10.1 = getelementptr [7 x sbyte]* %b, uint %indvar14, i...
2005 Jun 09
1
[LLVMdev] gmake check failures on FreeBSD 5.4
FAIL: /usr/home/jeffc/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 sby...