llvm-project
e5bbaa9c - PPC: Split 64bit target feature into 64bit and 64bit-support (#157206)

Commit
21 hours ago
PPC: Split 64bit target feature into 64bit and 64bit-support (#157206) This was being used for 2 different purposes. The TargetMachine constructor prepends +64bit based on isPPC64 triples as a mode switch. The same feature name was also explicitly added to different processors, making it impossible to perform a pure feature check for whether 64-bit mode is enabled ir not. i.e., checkFeatures("+64bit") would be true even for ppc32 triples. The comment in tablegen suggests it's relevant to track which processors support 64-bit mode independently of whether that's the active compile target, so replace that with a new feature.
Author
Parents
Loading