summaryrefslogtreecommitdiffstats
path: root/examples/cpu-hello-world/main.cpp
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2020-09-24 13:09:40 -0700
committerGitHub <noreply@github.com>2020-09-24 13:09:40 -0700
commit150218bec9e992d32833dd9a0c1396a4d7c12b7e (patch)
treec544eba21b13217619b9c48546c6ffbbbe0ec34b /examples/cpu-hello-world/main.cpp
parentfd2ac531c0fcb05bba421184b7443dc034281322 (diff)
Refactor preprocessor API to avoid coupling (#1559)
Based on review feedback from #1556, this change updates the Slang preprocessor so that it is no longer coupled to policy details from higher levels of the software stack. In particular, the preprocessor used to: * Deal with updating the list of file paths that a `Module` depends on. * (As of #1556) detect NVAPI-related macro definitions and use them to construct an AST-level `Modifier` attached to the `ModuleDecl`. This change introduces a callback interface where the `Preprocessor` calls out to a `PreprocessorHandler` at certain points during execution, allowing the handler to introduce custom logic that suits a particular high-level use case. This change also removes the dependence of the preprocessor on the `Linkage`, because in practice only a small number of its sub-objects were needed. As a convenience, a wrapper function that takes a `Linkage` was left in place so that the existing call sites didn't have to change very much.
Diffstat (limited to 'examples/cpu-hello-world/main.cpp')
0 files changed, 0 insertions, 0 deletions