[LLVMdev] How to check for "SPARC code generation" in MachineBasicBlock.cpp?

Chris Lattner clattner at apple.com
Thu Dec 10 15:54:16 PST 2009


On Dec 10, 2009, at 12:00 AM, Juergen Zimmermann - Sun Microsystems - Walldorf Germany wrote:

> Hi,
> I'm almost finished to get a complete and seemingly working build of
> LLVM-GCC (trunk) for SPARC (32-bit only, for now).
> 
> The only remaining problem is the code generation for one single
> file (namely cp-demangle.c) where some labels are not put into
> the assembler/object file due to some (until now) unknown
> inconsistencies with 'isOnlyReachableByFallthrough' and
> (most likely) the SPARC code generator.
> 
> For now, I'm looking for a way to determine within that function
> if LLVM is supposed to generate code for SPARC and then
> implement the logic that's needed.

That is target independent code, so you should not put sparc specific changes there.  It sounds like one of the sparc-specific target hooks is wrong.

-Chris



More information about the llvm-dev mailing list