<div dir="auto"><p style="font-family:sans-serif;font-size:13.696px"><span style="font-size:13.696px">Hello everyone,</span><br></p><p style="font-family:sans-serif;font-size:13.696px"><u></u> <u></u></p><p style="font-family:sans-serif;font-size:13.696px">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?</p><p style="font-family:sans-serif;font-size:13.696px">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?</p><p style="font-family:sans-serif;font-size:13.696px"><u></u> <u></u></p><p style="font-family:sans-serif;font-size:13.696px">Thanks!</p><p style="font-family:sans-serif;font-size:13.696px">Sreejita</p></div>