search for: intrinsicspowerpc

Displaying 18 results from an estimated 18 matches for "intrinsicspowerpc".

2008 Aug 22
3
[LLVMdev] Implementing llvm.memory.barrier on PowerPC
...anks for that. Attached is a working implementation of > >llvm.memory.barrier. > > > >>Thanks for doing this btw. > > > >No problem, I need it! ;) > > > >Cheers, > >Gary > > > >-- > >http://gbenson.net/ > Index: include/llvm/IntrinsicsPowerPC.td > =================================================================== > --- include/llvm/IntrinsicsPowerPC.td (revision 54985) > +++ include/llvm/IntrinsicsPowerPC.td (working copy) > @@ -26,6 +26,9 @@ > def int_ppc_dcbtst: Intrinsic<[llvm_void_ty, llvm_ptr_ty], [IntrWriteMe...
2008 Aug 19
2
[LLVMdev] Implementing llvm.memory.barrier on PowerPC
...4ad0: ch = MemBarrier 0x10fa4828, 0x10fa4c68, 0x10fa4be0, 0x10fa4be0, 0x10fa4be0, 0x10fa4be0". This presumably means my "membarrier" pattern isn't being found... but why? Thanks in advance, Gary -- http://gbenson.net/ -------------- next part -------------- Index: include/llvm/IntrinsicsPowerPC.td =================================================================== --- include/llvm/IntrinsicsPowerPC.td (revision 54985) +++ include/llvm/IntrinsicsPowerPC.td (working copy) @@ -26,6 +26,9 @@ def int_ppc_dcbtst: Intrinsic<[llvm_void_ty, llvm_ptr_ty], [IntrWriteMem]>; def int_ppc_dc...
2008 Aug 21
2
[LLVMdev] Implementing llvm.memory.barrier on PowerPC
...hange the i8's in membarrier to i32's it > works. Thanks for that. Attached is a working implementation of llvm.memory.barrier. > Thanks for doing this btw. No problem, I need it! ;) Cheers, Gary -- http://gbenson.net/ -------------- next part -------------- Index: include/llvm/IntrinsicsPowerPC.td =================================================================== --- include/llvm/IntrinsicsPowerPC.td (revision 54985) +++ include/llvm/IntrinsicsPowerPC.td (working copy) @@ -26,6 +26,9 @@ def int_ppc_dcbtst: Intrinsic<[llvm_void_ty, llvm_ptr_ty], [IntrWriteMem]>; def int_ppc_dc...
2008 Mar 17
1
[LLVMdev] Adapting created intrinsics to PowerPC backend
...t be implemented by one instruction it has to be expanded to a library call or lowered to something the ppc backend can understand? If it is possible to add the functionality of these functions to a library: Where is this library and how can these functions be added? Is it correct that entries in IntrinsicsPowerPC.td and PPCInstrInfo.td files have to be done to make these new intrinsics known? "migrate_begin" is an instruction with a variable argument list. Is there some special handling necessary to add variable argument functions? I would be thankful for any hints regarding this PowerPC backen...
2008 Aug 22
0
[LLVMdev] Implementing llvm.memory.barrier on PowerPC
...tion of >>> llvm.memory.barrier. >>> >>>> Thanks for doing this btw. >>> >>> No problem, I need it! ;) >>> >>> Cheers, >>> Gary >>> >>> -- >>> http://gbenson.net/ > >> Index: include/llvm/IntrinsicsPowerPC.td >> =================================================================== >> --- include/llvm/IntrinsicsPowerPC.td (revision 54985) >> +++ include/llvm/IntrinsicsPowerPC.td (working copy) >> @@ -26,6 +26,9 @@ >> def int_ppc_dcbtst: Intrinsic<[llvm_void_ty, llvm_pt...
2008 Aug 21
0
[LLVMdev] Implementing llvm.memory.barrier on PowerPC
On Aug 19, 2008, at 7:18 AMPDT, Gary Benson wrote: > Hi all, > > I'm trying to implement llvm.memory.barrier on PowerPC. I've modelled > my patch (attached) on the implementation in X86, but when I try and > compile my test file (also attached) with llc I get the error "Cannot > yet select: 0x10fa4ad0: ch = MemBarrier 0x10fa4828, 0x10fa4c68, > 0x10fa4be0,
2008 Aug 21
0
[LLVMdev] Implementing llvm.memory.barrier on PowerPC
This looks OK to check in, do you have write access? On Aug 21, 2008, at 6:38 AMPDT, Gary Benson wrote: > Dale Johannesen wrote: >> On Aug 19, 2008, at 7:18 AMPDT, Gary Benson wrote: >>> I'm trying to implement llvm.memory.barrier on PowerPC. I've >>> modelled my patch (attached) on the implementation in X86, but >>> when I try and compile my test
2012 May 23
1
[LLVMdev] tblgen for generation of Haskell bindings to LLVM intrinsics
...[llvm_v8f32_ty, llvm_v8f32_ty], [IntrNoMem]>; is turned into maxpd256 :: Ext.T (V4Double -> V4Double -> LLVM.CodeGenFunction r V4Double) maxpd256 = Ext.intrinsic ExtX86.avx "max.pd.256" This works for the flat structure of IntrinsicsX86.td, but e.g. IntrinsicsPowerPC.td uses tablegen classes. Now I wonder whether it is better to use tablegen to generate the Haskell code. The tblgen man page says, that tablegen emits C++. This would not be a big problem, since I could let it write C++ code that in turn writes Haskell code. Unfortunately the section "...
2020 Sep 29
3
TableGen processing of target-specific intrinsics
Each of the main TableGen files for the supported targets includes include "llvm/Target/Target.td" In turn, Target.td includes include "llvm/IR/Intrinsics.td" The final lines of Instrinsics.td are include "llvm/IR/IntrinsicsPowerPC.td" include "llvm/IR/IntrinsicsX86.td" include "llvm/IR/IntrinsicsARM.td" include "llvm/IR/IntrinsicsAArch64.td" include "llvm/IR/IntrinsicsXCore.td" include "llvm/IR/IntrinsicsHexagon.td" include "llvm/IR/IntrinsicsNVVM.td" include &...
2016 Jun 13
2
LLVM IR intrinsics placeholder for strings [was Re: Back end with special loop instructions (using LLVM IR intrinsics)]
...[(int_my_intrinsic2)] >; Best regards, Alex On 6/5/2016 5:21 PM, Alex Susu wrote: > Hello. > Hal, the source file you mention (lib/Target/PowerPC/PPCCTRLoops.cpp) makes use of > LLVM IR intrinsics, in this case defined at > [LLVM_repo]/llvm/include/llvm/IR/IntrinsicsPowerPC.td, such as: > // Intrinsics used to generate ctr-based loops. These should only be > // generated by the PowerPC backend! > def int_ppc_mtctr : Intrinsic<[], [llvm_anyint_ty], []>; > def int_ppc_is_decremented_ctr_nonzero : Intrinsic<[llvm_i1_ty...
2009 Apr 22
0
[LLVMdev] a very strange question about adding new instrinsic.
Hi: I want add new Instrinsic for my target. So I first do some test. I add them in IntrinsicsPowerPC.td //===--------------------===// let TargetPrefix = "ppc" in { def int_ppc_mytest : Intrinsic<[llvm_void_ty], [], [IntrWriteMem]>; } //===--------------------===// I add them in PPCInstrInfo.td //===--------------------===// def MYTEST : XForm_24_sync<31, 599, (outs), (ins),  ...
2006 Apr 08
0
[LLVMdev] RE: LLVM extension v.s. DirectX Shaders
...better support for adding target-specific intrinsics like this, and lots of examples. Mainline CVS now supports all of the altivec intrinsics, and a big chunk of the SSE ones (still in progress). Adding support for Direct3D shaders should be straight-forward. Take a look at llvm/include/llvm/IntrinsicsPowerPC.td for examples. Adding an intrinsic to LLVM now is just a matter of adding it to the include/llvm/Intrinsics*.td file and adding a line to your code generator .td file. > DSP and other scientific programs do not permuate the vectors as > frequent as 3D programs do. Almost each 3D instru...
2011 Feb 09
2
[LLVMdev] Building LLVM on Cygwin.
...h SymbolTableListTraits.h AbstractTypeUser.h CodeGen/ GlobalVariable.h IntrinsicsAlpha.td Module.h System/ Analysis/ CompilerDriver/ InlineAsm.h IntrinsicsCellSPU.td OperandTraits.h Target/ Argument.h Config/ InstrTypes.h IntrinsicsPowerPC.td Operator.h Transforms/ Assembly/ Constant.h Instruction.def IntrinsicsX86.td Pass.h Type.h Attributes.h Constants.h Instruction.h IntrinsicsXCore.td PassAnalysisSupport.h TypeSymbolTable.h AutoUpgrade.h DerivedTypes.h...
2016 May 30
1
Back end with special loop instructions
Hi Alex, You might find it useful to look at how lib/Target/PowerPC/PPCCTRLoops.cpp works. -Hal ----- Original Message ----- > From: "Alex Susu via llvm-dev" <llvm-dev at lists.llvm.org> > To: "llvm-dev" <llvm-dev at lists.llvm.org> > Sent: Monday, May 30, 2016 5:09:37 PM > Subject: [llvm-dev] Back end with special loop instructions > > Hello.
2016 May 30
2
Back end with special loop instructions
Hello. I'm writing a back end for my research SIMD processor that has an assembly language that is blocked structured, with one-level loops. An example program with my assembly language: REPEAT_X_TIMES(Param2) R0 = LS[offset_A]; END_REPEAT; The LLVM code somewhat equivalent to the above ASM program is: vector.body: %index = phi i64 [
2010 Oct 01
2
[LLVMdev] CMake "sudo make install" & headers
...ng: /usr/local/llvm-2.8/include/llvm/Intrinsics.td -- Installing: /usr/local/llvm-2.8/include/llvm/IntrinsicsARM.td -- Installing: /usr/local/llvm-2.8/include/llvm/IntrinsicsAlpha.td -- Installing: /usr/local/llvm-2.8/include/llvm/IntrinsicsCellSPU.td -- Installing: /usr/local/llvm-2.8/include/llvm/IntrinsicsPowerPC.td -- Installing: /usr/local/llvm-2.8/include/llvm/IntrinsicsX86.td -- Installing: /usr/local/llvm-2.8/include/llvm/IntrinsicsXCore.td -- Installing: /usr/local/llvm-2.8/include/llvm/LLVMContext.h -- Installing: /usr/local/llvm-2.8/include/llvm/LinkAllPasses.h -- Installing: /usr/local/llvm-2.8/inc...
2010 Oct 01
0
[LLVMdev] CMake "sudo make install" & headers
On Thu, Sep 30, 2010 at 3:08 PM, Samuel Williams <space.ship.traveller at gmail.com> wrote: > Hi, > > I might just be doing something stupid, but when I do > > $ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/llvm-2.8 -DCMAKE_BUILD_TYPE=Release .. > $ sudo make install > > I don't get the expected headers in >        /usr/local/llvm-2.8/include/llvm > > It is
2010 Sep 30
6
[LLVMdev] CMake "sudo make install" & headers
Hi, I might just be doing something stupid, but when I do $ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/llvm-2.8 -DCMAKE_BUILD_TYPE=Release .. $ sudo make install I don't get the expected headers in /usr/local/llvm-2.8/include/llvm It is simply an empty directory. What am I doing wrong? This is on Mac OS X, CMake 2.8+ Kind regards, Samuel