[llvm-dev] Question about the build

Paul C. Anagnostopoulos via llvm-dev llvm-dev at lists.llvm.org
Fri Dec 18 13:04:01 PST 2020


When I do that, Ninja builds:

PseudoLoweringEmitter.cpp [the file I touched]
llvm-tblgen.exe

If I touch a target's .td file, then all all the .inc files are rebuilt, as expected.

About a week ago I cleared out the CMake cache and the CmakeFiles directory. Could that be related? I'm not sure why that would change file dependencies.


At 12/18/2020 03:45 PM, Fāng-ruì Sòng wrote:
>On Fri, Dec 18, 2020 at 12:37 PM Paul C. Anagnostopoulos via llvm-dev
><llvm-dev at lists.llvm.org> wrote:
>>
>> If I rebuild TableGen and then build lib/Target/all, shouldn't Ninja rebuild all the target .inc files and then all the files that include those .inc files? I realize that identical .inc files are not written, but it's not even running TableGen on the .td files.
>>
>> I swear it was rebuilding a couple of weeks ago, but it isn't now. I'm doubting my mental faculties on this issue.
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> llvm-dev at lists.llvm.org
>> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>It works fine for me.
>
>touch a file in llvm/utils/TableGen/
>ninja lib/Target/all
># llvm-tblgen is rebuilt
># include/llvm/IR/IntrinsicsXcore.h
>lib/Target/AArch64/AArch64GenSystemOperands.inc
>lib/Target/AArch64/AArch64GenAsmWriter1.inc etc are rebuilt



More information about the llvm-dev mailing list