Mapping of FP operations to constrained intrinsics
authorSerge Pavlov <sepavloff@gmail.com>
Wed, 30 Mar 2022 04:23:49 +0000 (11:23 +0700)
committerSerge Pavlov <sepavloff@gmail.com>
Wed, 30 Mar 2022 05:21:30 +0000 (12:21 +0700)
commit115b3ace369254f573ca28934ef30ab9d8f497ef
tree887e7231b13e548a9a936ec5a78377fe77af4d4b
parent793b7f903d6ba0dc80e8b6ccf289f66e1e3a6b86
Mapping of FP operations to constrained intrinsics

A new function 'getConstrainedIntrinsic' is added, which for any gived
instruction returns id of the corresponding constrained intrinsic. If
there is no constrained counterpart for the instruction or the instruction
is already a constrained intrinsic, the function returns zero.

Differential Revision: https://reviews.llvm.org/D69562
llvm/include/llvm/IR/FPEnv.h
llvm/lib/IR/FPEnv.cpp
llvm/unittests/IR/InstructionsTest.cpp