[LangRef] Clarify codegen expectations for intrinsics with fp/integer-only overloads.
This change is a result of discussions on list: "GlobalISel: Ambiguous intrinsic semantics problem"
Differential D59657
[LangRef] Clarify codegen expectations for intrinsics with fp/integer-only overloads aemerson on Mar 21 2019, 11:26 AM. Authored by
Details [LangRef] Clarify codegen expectations for intrinsics with fp/integer-only overloads. This change is a result of discussions on list: "GlobalISel: Ambiguous intrinsic semantics problem"
Diff Detail
Event Timeline
Comment Actions I don't understand what this is supposed to mean to who the audience of this statement is? Comment Actions Clearly the wording isn't good enough then, but here's the motivating discussion: http://lists.llvm.org/pipermail/llvm-dev/2019-March/130903.html The tl;dr is that we agreed that intrinsics which need different codegen based *only* on whether a intrinsic operand type is integer or fp is not supported. call @llvm.foo(<4 x i32> %p) and call @llvm.foo(<4 x float> %p) should not be supported by the code generator, as the only thing that distinguishes them is the fp/integer type. With llvm::Instruction we have separate opcodes for fp/int operations, e.g. fadd vs add. The audience of this are people who are defining new target intrinsics.
Comment Actions
This should be made explicitly clear. Thanks. |