Displaying 14 results from an estimated 14 matches for "intrinsicsptx".
2011 Dec 08
3
[LLVMdev] PTX builtin functions.
It is my understanding that all you need to do is specify let isTarget = 1 in your .td file and it will generate target specific intrinsics. This should allow you to keep the IntrinsicsPTX.td file in the same location.
Micah
From: Justin Holewinski [mailto:justin.holewinski at gmail.com]
Sent: Monday, December 05, 2011 6:13 AM
To: Alberto Magni
Cc: Villmow, Micah; LLVM Developers Mailing List
Subject: Re: [LLVMdev] PTX builtin functions.
On Sun, Dec 4, 2011 at 1:10 PM, Alberto Mag...
2011 Dec 08
0
[LLVMdev] PTX builtin functions.
On Thu, Dec 8, 2011 at 11:36 AM, Villmow, Micah <Micah.Villmow at amd.com>wrote:
> It is my understanding that all you need to do is specify let isTarget =
> 1 in your .td file and it will generate target specific intrinsics. This
> should allow you to keep the IntrinsicsPTX.td file in the same location.
>
So we keep the intrinsics defined in include/llvm/IntrinsicsPTX.td? How do
we then get at the generated files in the PTXIntrinsicInfo class in the
back-end?
What exactly does isTarget do? It seems to remove a lot of the intrinsic
information in the Intrinsics....
2011 Dec 05
0
[LLVMdev] PTX builtin functions.
On Sun, Dec 4, 2011 at 1:10 PM, Alberto Magni <alberto.magni86 at gmail.com>wrote:
> Hi Justin,
>
> sorry for the delay, I have been busy.
>
> Micah's proposal requires to move the definitions of the intrinsics
> from include/llvm/IntrinsicsPTX.td to lib/Target/PTX/PTXIntrinsics.td
> thus allowing the generation of the file PTXGenIntrinsics.inc which
> will be included by PTXIntrinsicInfo.cpp.
> This is a quite big modification, do you agree with this ?
> Or do you have a better solution.
>
I'm opposed to this, mainly...
2011 Dec 04
2
[LLVMdev] PTX builtin functions.
Hi Justin,
sorry for the delay, I have been busy.
Micah's proposal requires to move the definitions of the intrinsics
from include/llvm/IntrinsicsPTX.td to lib/Target/PTX/PTXIntrinsics.td
thus allowing the generation of the file PTXGenIntrinsics.inc which
will be included by PTXIntrinsicInfo.cpp.
This is a quite big modification, do you agree with this ?
Or do you have a better solution.
Also I don't know yet how to make llvm recognize the...
2011 Nov 16
4
[LLVMdev] PTX builtin functions.
Dear Justin,
I am trying to add the support for some OpenCL builtin functions to
the PTX backend.
The attached file represent the first stub of a patch for the fmax
builtin function.
The test case I am trying is the following:
define ptx_device float @f(float %x, float %y) {
entry:
%z = call float @fmax(float %x, float %y)
ret float %z
}
declare float @fmax(float, float)
But at the moment
2011 Nov 16
0
[LLVMdev] PTX builtin functions.
...to implement it as an intrinsic in
the back-end.
Second, intrinsic functions require a bit more work. You're off to a great
start, but intrinsics are implemented a bit differently. It looks like
LLVM does not have a max intrinsic, so we'll need to create one. Have a
look at include/llvm/IntrinsicsPTX.td. This file defines the PTX-specific
intrinsics. You can add an intrinsic for max here, and then implement a
pattern-match in the PTXInstrInfo.td file. There is no need to create a
new SDNode type for intrinsics, unless they require some special handling
in the C++ code, which I do not see bei...
2011 Nov 21
1
[LLVMdev] PTX builtin functions.
...sic functions require a bit more work. You're off to a
> >>> great start, but intrinsics are implemented a bit differently. It
> looks
> >>> like LLVM does not have a max intrinsic, so we'll need to create one.
> Have
> >>> a look at include/llvm/IntrinsicsPTX.td. This file defines the
> PTX-specific
> >>> intrinsics. You can add an intrinsic for max here, and then implement
> a
> >>> pattern-match in the PTXInstrInfo.td file. There is no need to create
> a new
> >>> SDNode type for intrinsics, unless they...
2011 Nov 23
0
[LLVMdev] PTX builtin functions.
...;> >> >>> like LLVM does not have a max intrinsic, so we'll need to
> > >> create
> > >> >> >> >>> one.
> > >> >> >> >>> Have
> > >> >> >> >>> a look at include/llvm/IntrinsicsPTX.td. This file defines
> > >> the
> > >> >> >> >>> PTX-specific
> > >> >> >> >>> intrinsics. You can add an intrinsic for max here, and
then
> > >> >> >> >>> implement
> > >>...
2011 Nov 23
2
[LLVMdev] PTX builtin functions.
...ks
> >> >> >> >>> like LLVM does not have a max intrinsic, so we'll need to
> >> create
> >> >> >> >>> one.
> >> >> >> >>> Have
> >> >> >> >>> a look at include/llvm/IntrinsicsPTX.td. This file defines
> >> the
> >> >> >> >>> PTX-specific
> >> >> >> >>> intrinsics. You can add an intrinsic for max here, and then
> >> >> >> >>> implement
> >> >> >> >>...
2011 Nov 21
0
[LLVMdev] PTX builtin functions.
...9;re off to a
>> >>> great start, but intrinsics are implemented a bit differently. It
>> >>> looks
>> >>> like LLVM does not have a max intrinsic, so we'll need to create one.
>> >>> Have
>> >>> a look at include/llvm/IntrinsicsPTX.td. This file defines the
>> >>> PTX-specific
>> >>> intrinsics. You can add an intrinsic for max here, and then implement
>> >>> a
>> >>> pattern-match in the PTXInstrInfo.td file. There is no need to create
>> >>> a new...
2011 Nov 21
2
[LLVMdev] PTX builtin functions.
...t;>> great start, but intrinsics are implemented a bit differently. It
> >> >>> looks
> >> >>> like LLVM does not have a max intrinsic, so we'll need to create
> one.
> >> >>> Have
> >> >>> a look at include/llvm/IntrinsicsPTX.td. This file defines the
> >> >>> PTX-specific
> >> >>> intrinsics. You can add an intrinsic for max here, and then
> implement
> >> >>> a
> >> >>> pattern-match in the PTXInstrInfo.td file. There is no need to
> crea...
2011 Nov 22
0
[LLVMdev] PTX builtin functions.
...implemented a bit differently. It
>> >> >>> looks
>> >> >>> like LLVM does not have a max intrinsic, so we'll need to create
>> >> >>> one.
>> >> >>> Have
>> >> >>> a look at include/llvm/IntrinsicsPTX.td. This file defines the
>> >> >>> PTX-specific
>> >> >>> intrinsics. You can add an intrinsic for max here, and then
>> >> >>> implement
>> >> >>> a
>> >> >>> pattern-match in the PTXInstrIn...
2011 Nov 22
2
[LLVMdev] PTX builtin functions.
.... It
> >> >> >>> looks
> >> >> >>> like LLVM does not have a max intrinsic, so we'll need to
> create
> >> >> >>> one.
> >> >> >>> Have
> >> >> >>> a look at include/llvm/IntrinsicsPTX.td. This file defines
> the
> >> >> >>> PTX-specific
> >> >> >>> intrinsics. You can add an intrinsic for max here, and then
> >> >> >>> implement
> >> >> >>> a
> >> >> >>> p...
2011 Nov 23
0
[LLVMdev] PTX builtin functions.
...>> >>> looks
>> >> >> >>> like LLVM does not have a max intrinsic, so we'll need to
>> create
>> >> >> >>> one.
>> >> >> >>> Have
>> >> >> >>> a look at include/llvm/IntrinsicsPTX.td. This file defines
>> the
>> >> >> >>> PTX-specific
>> >> >> >>> intrinsics. You can add an intrinsic for max here, and then
>> >> >> >>> implement
>> >> >> >>> a
>> >>...