Displaying 7 results from an estimated 7 matches for "test_unary_op_anegate".
2008 Sep 10
2
[LLVMdev] Custom Lowering and fneg
...nt to test all the various data types and operations with
my modified sparc backend. I've been working on LLVM for about 3 days
now, so this might be a problem with not knowing enough yet, so thanks
for bearing with me.
The code that I based my example off of is compiled to LLVM-IR from:
void test_unary_op_anegate(float x, float* result)
{
*result = (-x);
}
Generating the following LLVM IR:
define void @test_unary_op_anegate(float %x, float addrspace(11)*
%result) nounwind {
entry:
%neg = sub float -0.000000e+000, %x ; <float>
[#uses=1]
store float %neg,...
2008 Sep 17
2
[LLVMdev] store addrspace qualifier
How do I access the address qualifier from the store instruction.
Given the following code:
define void @test_unary_op_anegate(float %x, float addrspace(11)*
%result) nounwind {
entry:
%neg = sub float -0.000000e+000, %x ; <float>
[#uses=1]
store float %neg, float addrspace(11)* %result
ret void
}
When I attempt to generate this code, I'm aborting on.
Cannot yet select:...
2008 Sep 17
0
[LLVMdev] store addrspace qualifier
...cast to a PointerType and
get the getAddressSpace e.g. cast<PointerType>(Ty)->getAddressSpace()
-- Mon Ping
On Sep 17, 2008, at 1:06 PM, Villmow, Micah wrote:
> How do I access the address qualifier from the store instruction.
> Given the following code:
>
> define void @test_unary_op_anegate(float %x, float addrspace(11)*
> %result) nounwind {
> entry:
> %neg = sub float -0.000000e+000, %x ; <float>
> [#uses=1]
> store float %neg, float addrspace(11)* %result
> ret void
> }
> When I attempt to generate this code, I’...
2008 Sep 18
2
[LLVMdev] store addrspace qualifier
...h you cast to a PointerType and get
the getAddressSpace e.g. cast<PointerType>(Ty)->getAddressSpace()
-- Mon Ping
On Sep 17, 2008, at 1:06 PM, Villmow, Micah wrote:
How do I access the address qualifier from the store instruction.
Given the following code:
define void @test_unary_op_anegate(float %x, float addrspace(11)*
%result) nounwind {
entry:
%neg = sub float -0.000000e+000, %x ; <float>
[#uses=1]
store float %neg, float addrspace(11)* %result
ret void
}
When I attempt to generate this code, I'm aborting on.
Cannot yet select:...
2008 Sep 10
0
[LLVMdev] Custom Lowering and fneg
On Wed, Sep 10, 2008 at 2:35 PM, Villmow, Micah <Micah.Villmow at amd.com> wrote:
> Generating the following LLVM IR:
>
> define void @test_unary_op_anegate(float %x, float addrspace(11)* %result)
> nounwind {
> entry:
> %neg = sub float -0.000000e+000, %x ; <float> [#uses=1]
> store float %neg, float addrspace(11)* %result
> ret void
> }
>
> However, when I attempt to run it through my...
2008 Sep 10
3
[LLVMdev] Custom Lowering and fneg
...Behalf Of Eli Friedman
Sent: Wednesday, September 10, 2008 3:30 PM
To: LLVM Developers Mailing List
Subject: Re: [LLVMdev] Custom Lowering and fneg
On Wed, Sep 10, 2008 at 2:35 PM, Villmow, Micah <Micah.Villmow at amd.com>
wrote:
> Generating the following LLVM IR:
>
> define void @test_unary_op_anegate(float %x, float addrspace(11)*
%result)
> nounwind {
> entry:
> %neg = sub float -0.000000e+000, %x ; <float>
[#uses=1]
> store float %neg, float addrspace(11)* %result
> ret void
> }
>
> However, when I attempt to run it through my...
2008 Sep 16
0
[LLVMdev] Custom Lowering and fneg
...Behalf Of Eli Friedman
Sent: Wednesday, September 10, 2008 3:30 PM
To: LLVM Developers Mailing List
Subject: Re: [LLVMdev] Custom Lowering and fneg
On Wed, Sep 10, 2008 at 2:35 PM, Villmow, Micah <Micah.Villmow at amd.com>
wrote:
> Generating the following LLVM IR:
>
> define void @test_unary_op_anegate(float %x, float addrspace(11)*
%result)
> nounwind {
> entry:
> %neg = sub float -0.000000e+000, %x ; <float>
[#uses=1]
> store float %neg, float addrspace(11)* %result
> ret void
> }
>
> However, when I attempt to run it through my...