Sreejita saha via llvm-dev
2017-Jun-03 14:32 UTC
[llvm-dev] Backend implementation of an architecture having only majority instructions
Hello everyone, I was trying to create an LLVM backend for a processor with a very simple architecture and that does all instructions like load, store, arithmetic and logical instructions using a bunch of majority functions. The processor has only one instruction(majority function) in its ISA and breaks down all other instructions into a number of majority instructions depending on what instruction it is. All the instructions have different combinations of majority operations. Is there any way to implement this without creating a new Selection DAG node for the majority operation? Also can i create a selection DAG node in the backend instruction info itself? If so then how? I was thinking of creation of a new Selection DAG node and mapping all the other instructions like loads, stores as pseudo instructions and breaking them up. Can someone please help me with this? Thanks! Sreejita -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170603/b8a7ef8c/attachment.html>
Hal Finkel via llvm-dev
2017-Jun-03 15:02 UTC
[llvm-dev] Backend implementation of an architecture having only majority instructions
On 06/03/2017 09:32 AM, Sreejita saha via llvm-dev wrote:> > Hello everyone, > > I was trying to create an LLVM backend for a processor with a very > simple architecture and that does all instructions like load, store, > arithmetic and logical instructions using a bunch of majority > functions. The processor has only one instruction(majority function) > in its ISA and breaks down all other instructions into a number of > majority instructions depending on what instruction it is. All the > instructions have different combinations of majority operations. Is > there any way to implement this without creating a new Selection DAG > node for the majority operation? Also can i create a selection DAG > node in the backend instruction info itself? If so then how? > > I was thinking of creation of a new Selection DAG node and mapping all > the other instructions like loads, stores as pseudo instructions and > breaking them up. Can someone please help me with this? >Why don't you just write TableGen patterns to match the various selection-DAG nodes onto the correct combinations of your instruction? -Hal> Thanks! > > Sreejita > > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev-- Hal Finkel Lead, Compiler Technology and Programming Languages Leadership Computing Facility Argonne National Laboratory -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170603/6a874ea9/attachment.html>
Sreejita saha via llvm-dev
2017-Jun-04 04:18 UTC
[llvm-dev] Backend implementation of an architecture having only majority instructions
Hey Hal, The architecture just supports one instruction which could be actually written down as ORs and ANDs and but there is no particular DAG node that it can directly map onto. Is there a way to describe that instruction ? Like if the instruction does the AB+BC+CA(if A, B,C are operands) can this be written somehow in tablegen pattern? Thanks! -Sreejita On Sat, Jun 3, 2017 at 9:02 AM, Hal Finkel via llvm-dev < llvm-dev at lists.llvm.org> wrote:> > > On 06/03/2017 09:32 AM, Sreejita saha via llvm-dev wrote: > > Hello everyone, > > > > I was trying to create an LLVM backend for a processor with a very simple > architecture and that does all instructions like load, store, arithmetic > and logical instructions using a bunch of majority functions. The processor > has only one instruction(majority function) in its ISA and breaks down all > other instructions into a number of majority instructions depending on what > instruction it is. All the instructions have different combinations of > majority operations. Is there any way to implement this without creating a > new Selection DAG node for the majority operation? Also can i create a > selection DAG node in the backend instruction info itself? If so then how? > > I was thinking of creation of a new Selection DAG node and mapping all the > other instructions like loads, stores as pseudo instructions and breaking > them up. Can someone please help me with this? > > > Why don't you just write TableGen patterns to match the various > selection-DAG nodes onto the correct combinations of your instruction? > > -Hal > > > > Thanks! > > Sreejita > > > _______________________________________________ > LLVM Developers mailing listllvm-dev at lists.llvm.orghttp://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > > > -- > Hal Finkel > Lead, Compiler Technology and Programming Languages > Leadership Computing Facility > Argonne National Laboratory > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170603/1373f150/attachment.html>
Reasonably Related Threads
- Backend implementation for an architecture with only majority operation instruction
- Backend implementation for an architecture with only majority operation instruction
- Please help me to combine two datasets.
- how I can perform Multivariate Garch analysis in R
- Insert R logo