[llvm] [SystemZ][XRay] Implement XRay instrumentation for SystemZ (PR #113253)
Ulrich Weigand via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 30 04:54:29 PDT 2024
uweigand wrote:
> @uweigand Just to make sure:
>
> ```
> bool HasVectorFeature =
> TM.getMCSubtargetInfo()->hasFeature(SystemZ::FeatureVector);
> ```
>
> is the correct way to determine if the user compiles with the vector extension enabled, isn't it?
Yes, this should be correct. I'm now wondering whether this handles -msoft-float correctly - for the main Subtarget, we disable the vector feature if soft-float is used, but I'm not sure if that also happens for the MCSubtarget. Might be interesting to verify.
https://github.com/llvm/llvm-project/pull/113253
More information about the llvm-commits
mailing list