This is not an officially supported one, but I bet Kernel Analyzer does it the same way.
Look for calcl.h in the SDK include directory.
calclCompile() - you can compile an executable image with this.
calclImageGetSize(), calclImageWrite() - you can get the byte stream off of that image, which is an .elf executable file.
Manually extract the first .text section from that elf file, that's the AMD_IL binary! (the second .text section is the isa microcode)