[LLVMdev] How to define macros in a tablegen file?

Sebastian Pop spop at codeaurora.org
Wed Jun 20 10:14:45 PDT 2012


Hi Micah,

On Tue, Jun 19, 2012 at 6:29 PM, Villmow, Micah <Micah.Villmow at amd.com> wrote:
> If the patterns only include SDNodes, then pattern fragments will work.
>
> I might be wrong, but I've yet to find a way to do it with machine instructions, which is what you seem to have here.

I found in the Cell SPU port: lib/Target/CellSPU/SPUMathInstr.td
some examples using code fragments.  I will try to see if that makes
my code more readable.

Thanks for your suggestions,
Sebastian
-- 
Qualcomm Innovation Center, Inc is a member of Code Aurora Forum



More information about the llvm-dev mailing list