Since rL323277 utils/TableGen/CodeGenSchedule.cpp pulls in "llvm/CodeGen/TargetOpcodes.h".
This currently attempts to build the whole llvm/CodeGen module which will try to add
LLVM/IR/Attributes.h. This headers #include "llvm/IR/Attributes.gen" which needs to be
built by tablegen so the build failed.
As a workaround I marked llvm/CodeGen/TargetOpcodes.h as a textual header. I am not sure if that is the correct solution but at least the build passes again for me.