Detect calls to compiler intrinsics and emit an extern declarations
authorSanjiv Gupta <sanjiv.gupta@microchip.com>
Mon, 11 May 2009 06:01:38 +0000 (06:01 +0000)
committerSanjiv Gupta <sanjiv.gupta@microchip.com>
Mon, 11 May 2009 06:01:38 +0000 (06:01 +0000)
commit0608b49819c5d665636e48ccc9b3b018ac1595d8
treed3bf049dd6a9a01b5bb1da2f91b23154345edcde
parent26e2de135c8eeba4d2e4bf7a493b383e3f25f6eb
Detect calls to compiler intrinsics and emit an extern declarations
only for those. These extern declarations to intrinsics are currently
being emitted at the bottom of generated .s file, which works fine with
gpasm(not sure about MPSAM though).
PIC16 linker generates errors for few cases (function-args/struct_args_5) if you do not include any
extern declarations (even if no intrinsics are being used), but that
needs to be fixed in the linker itself.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71423 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PIC16/PIC16.h
lib/Target/PIC16/PIC16AsmPrinter.cpp
lib/Target/PIC16/PIC16AsmPrinter.h
lib/Target/PIC16/PIC16MemSelOpt.cpp