I want to include different parts of a file through different macro definitions in the td file, but I found that there is no #undef keyword, so I would like to ask tblgen if there are other mechanisms to achieve conditional inclusion.If #undef is not provided, how do I invalidate the defined macro? If you can answer, thank you very much!
Scenario example
fileA.td:
#define B_A
include "fileB.td"
#define B_B
include "fileB.td"
fileB.td:
#ifdef B_A
// Duplicate inclusion due to no #undef keyword
//#undef B_A
......
#endif
#ifdef B_B
// Duplicate inclusion due to no #undef keyword
......
#endif
This is an idea, but if my file consists of four or more parts that are conditionally included, then I will have to define a large number of such code structures.
I have submitted the relevant undef code and it is still under review.