[llvm-dev] testing a back-end pre-emit pass
Chris.Dewhurst via llvm-dev
llvm-dev at lists.llvm.org
Mon Aug 1 08:46:39 PDT 2016
Does anyone have any direction for me on testing a back-end pre-emit pass independently of other passes? The pass I'm looking at is a MachineFunctionPass, so the code is already using target-specific instructions.
What I'm really looking to do is to see that the pass is correctly converting certain target-specific instructions sequences into other sequences, but I'm unsure how I can get an input in the correct format to construct a good unit test. Can I generate an ".ll" file using target specific instructions and then pass it through to a back-end MachineFunctionPass to test specifically just that one pass?
Lero, University of Limerick.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev