[PATCH] Review: Add Cmake Options to disable target components (AsmParser, InstPrinter, Disassembler)

Aditya Nandakumar aditya_nandakumar at apple.com
Sat Apr 12 14:56:02 PDT 2014


Hi

I have attached a patch which accepts CMAKE options to disable target specific components. Also attached is a patch for changes required for the R600 target. This can save megabytes in released binaries
Eg usage :
cmake -DLLVM_TARGETS_TO_BUILD="R600" -G "Ninja" -DCMAKE_BUILD_TYPE=Release ../llvm/ -DLLVM_TARGETS_DISABLE_INST_PRINTER=“R600”
llvm-build and llvm-lit has been updated as well.

Additional options to Cmake are 
-DLLVM_TARGETS_DISABLE_DISASSEMBLER=“…” and 
-DLLVM_TARGETS_DISABLE_PARSER=“…”

I request you to kindly review this change.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: CMakeDisableTargetComponents.patch
Type: application/octet-stream
Size: 12068 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140412/490303e0/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: R600DisableInstPrinter.patch
Type: application/octet-stream
Size: 3399 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140412/490303e0/attachment-0001.obj>
-------------- next part --------------


Thanks
Aditya Nandakumar


More information about the llvm-commits mailing list