[PATCH] D158260: [GlobalISel] Add support for *_fpmode intrinsics

Serge Pavlov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 18 01:57:05 PDT 2023


sepavloff created this revision.
sepavloff added reviewers: arsenm, foad, greened, aemerson, craig.topper.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
sepavloff requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

The change implements support of the intrinsics `get_fpmode`,
`set_fpmode` and `reset_fpmode` in Global Instruction Selector. Now they
are lowered into library function calls.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D158260

Files:
  llvm/include/llvm/CodeGen/GlobalISel/Legalizer.h
  llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
  llvm/include/llvm/Support/TargetOpcodes.def
  llvm/include/llvm/Target/GenericOpcodes.td
  llvm/include/llvm/Target/GlobalISel/SelectionDAGCompat.td
  llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
  llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
  llvm/lib/CodeGen/GlobalISel/LegalizerInfo.cpp
  llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-fpenv.ll
  llvm/test/CodeGen/AArch64/GlobalISel/legalize-fpmode.mir
  llvm/test/CodeGen/AArch64/GlobalISel/legalizer-fpenv.mir
  llvm/test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir
  llvm/test/CodeGen/AArch64/fpmode.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158260.551433.patch
Type: text/x-patch
Size: 26732 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230818/d7326980/attachment.bin>


More information about the llvm-commits mailing list