Details
Diff Detail
Event Timeline
lib/Target/AMDGPU/AMDGPUTargetMachine.h | ||
---|---|---|
90 ↗ | (On Diff #44389) | This is pretty gross. Why not just move the variable to the TargetMachine or have a function that's part of the target machine that looks up ISA version based on... whatever it is it's based on? :) |
lib/Target/AMDGPU/AMDGPUTargetMachine.h | ||
---|---|---|
90 ↗ | (On Diff #44389) | ISA version is based on the CPU string. The reason to do it this way is the logic mapping CPU strings to IsaVersion already exists in the .TD files and I didn't want to duplicate the logic here, but if implementing it this way is a problem then I can duplicate the logic here, it should be a problem. Do you have a preference? |
Construct an MCSubtargetInfo object in the AsmPrinter so we can fetch
the feature bits.
This is fine. You should probably clean up getIsaVersion. It appears to be just used as a tag in the object so it doesn't really need a subtarget feature, you could just have a static version that returns a number.
-eric