filmov
tv
2020 LLVM Developers’ Meeting: “CompilerInvocation to -cc1 command line”

Показать описание
—
CompilerInvocation to -cc1 command line - Daniel Grumberg
Slides:
—
Modules support needs a way to convert CompilerInvocation instances to -cc1 command lines. It is highly error-prone to maintain this mapping by hand, so we have automated the process. This talk will explain the design behind the new -cc1 option parsing and generation system and how best to use it.
This new system adds TableGen primitives that can be used to specify how to parse and conversely generate a -cc1 command line flag for a given option. By leveraging TableGen in this way we were able to remove large amounts of option parsing code from -cc1. This allows the generation of the mapping from CompilerInvocation instance to original command line options without the need for custom code.
—
CompilerInvocation to -cc1 command line - Daniel Grumberg
Slides:
—
Modules support needs a way to convert CompilerInvocation instances to -cc1 command lines. It is highly error-prone to maintain this mapping by hand, so we have automated the process. This talk will explain the design behind the new -cc1 option parsing and generation system and how best to use it.
This new system adds TableGen primitives that can be used to specify how to parse and conversely generate a -cc1 command line flag for a given option. By leveraging TableGen in this way we were able to remove large amounts of option parsing code from -cc1. This allows the generation of the mapping from CompilerInvocation instance to original command line options without the need for custom code.
—