[PATCH] D103343: [SystemZ][z/OS] Stricter condition for HLASM class instantiation
Anirudh Prasad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 31 07:48:11 PDT 2021
anirudhp added a comment.
In D103343#2789121 <https://reviews.llvm.org/D103343#2789121>, @uweigand wrote:
> Maybe it would be clearer to be explicit and write:
>
> if (C.getTargetTriple().isSystemZ() && C.getTargetTriple().isOSzOS())
>
> This should have the same effect
Yes, that would be the same behaviour.
> but avoid the implicit assumptions.
Are we making an implicit assumption? In the `getDefaultFormat` function in Triple.cpp, we have:
case Triple::systemz:
if (T.isOSzOS())
return Triple::GOFF;
`GOFF` is only set when the arch is systemz and the os is zos.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103343/new/
https://reviews.llvm.org/D103343
More information about the llvm-commits
mailing list