search for: retptr

Displaying 9 results from an estimated 9 matches for "retptr".

Did you mean: retpt
2014 Oct 29
2
[LLVMdev] [PATCH] LangRef: va_arg doesn't work on X86_64; update example
...__va_list_tag = type { i32, i32, i8*, i8* } + define i32 @test(i32 %X, ...) { ; Initialize variable argument processing - %ap = alloca i8* - %ap2 = bitcast i8** %ap to i8* + %ap = alloca %struct.__va_list_tag + %ap2 = bitcast %struct.__va_list_tag* %ap to i8* + %retptr = alloca i32 call void @llvm.va_start(i8* %ap2) ; Read a single integer argument - %tmp = va_arg i8** %ap, i32 - - ; Demonstrate usage of llvm.va_copy and llvm.va_end - %aq = alloca i8* - %aq2 = bitcast i8** %aq to i8* - call void @llvm.va_copy(i8* %aq2, i8*...
2014 Aug 26
2
[LLVMdev] [BUG] Varargs example in LangRef segfaults
Hi, So the Variable Argument Handling Intrinsics section of the LangRef (http://llvm.org/docs/LangRef.html#variable-argument-handling-intrinsics) lists an example that segfaults. Try the following on x86_64: -- 8< -- define i32 @test(i32 %X, ...) { ; Initialize variable argument processing %ap = alloca i8* %ap2 = bitcast i8** %ap to i8* call void @llvm.va_start(i8* %ap2) ; Read a
2010 Nov 03
0
[LLVMdev] Fw: Forcing the Interpreter segfaults
...%char = load i8* %str > %cond = icmp eq i8 %char, 97 > br i1 %cond, label %State1, label %End > > State1: ; preds = %entry > br label %End > > End: ; preds = %State1, %entry > %retPtr.0 = phi i32 [ 1, %State1 ], [ 0, %entry ] > ret i32 %retPtr.0 > } > > It just checks if the first character of the string is an a. > The given parameter is "abc"... > > On Wed, Nov 3, 2010 at 16:10, Duncan Sands <baldrick at free.fr > <mailto:baldrick at f...
2010 Nov 03
4
[LLVMdev] Fw: Forcing the Interpreter segfaults
[I assume you meant to send this to the list as well, not just me.] Begin forwarded message: Date: Wed, 3 Nov 2010 14:43:54 +0000 From: Salomon Brys <salomon.brys at gmail.com> To: Török Edwin <edwintorok at gmail.com> Subject: Re: [LLVMdev] Forcing the Interpreter segfaults I have build LLVM in debug mode. Here are the informations of the segfault : memcpy() at 0x7ffff6f6581e
2018 Apr 18
1
[RFC] Making GVN able to visit the same block more than once
...2, align 4 %val3 = load i32, i32* %ptr3, align 4 %cmp1 = icmp slt i32 %val1, %val2 br i1 %cmp1, label %a, label %b a: %cmp2 = icmp slt i32 %val1, %val3 br i1 %cmp2, label %end, label %b b: %bphi = phi i32* [ %ptr2, %a ], [ %ptr3, %entry ] br label %end end: %retptr = phi i32* [ %ptr1, %a ], [ %bphi, %b ] %ret = load i32, i32* %retptr, align 4 ret i32 %ret } Here this load of %ret is fully redundant: on every path from entry to end there is a load which already has the value that %ret would load. Currently in GVN after it does AnalyzeLoadAvailabili...
2013 Jan 08
13
[PATCH 00/12] VMCI for Linux upstreaming
* * * This series of VMCI linux upstreaming patches include latest udpate from VMware to address Greg's and all other's code review comments. Summary of changes: - Rebase our linux kernel tree from v3.5 to v3.7. - Fix all checkpatch warnings and errors. Fix some checkpatch with -strict errors. This addresses Greg's comment: On 15 Nov 2012
2013 Jan 08
13
[PATCH 00/12] VMCI for Linux upstreaming
* * * This series of VMCI linux upstreaming patches include latest udpate from VMware to address Greg's and all other's code review comments. Summary of changes: - Rebase our linux kernel tree from v3.5 to v3.7. - Fix all checkpatch warnings and errors. Fix some checkpatch with -strict errors. This addresses Greg's comment: On 15 Nov 2012
2012 Oct 30
29
[PATCH 00/12] VMCI for Linux upstreaming
* * * This series of VMCI linux upstreaming patches include latest udpate from VMware. -split guest, host and core driver code into different files -use EXPORT_SYMBOLS_GPL -remove vmci_device_get and vmci_device_release APIs -simplify the event deliver mechanism -driver ioctl code cleanup -sparse clean * * * In an effort to improve the out-of-the-box experience with
2012 Oct 30
29
[PATCH 00/12] VMCI for Linux upstreaming
* * * This series of VMCI linux upstreaming patches include latest udpate from VMware. -split guest, host and core driver code into different files -use EXPORT_SYMBOLS_GPL -remove vmci_device_get and vmci_device_release APIs -simplify the event deliver mechanism -driver ioctl code cleanup -sparse clean * * * In an effort to improve the out-of-the-box experience with