[PATCH] D70261: [strictfp] Add token support for FP constraints

Andy Kaylor via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 14 11:11:32 PST 2019


andrew.w.kaylor created this revision.
andrew.w.kaylor added reviewers: kpn, cameron.mcinally, uweigand, sepavloff, spatel, craig.topper.
Herald added subscribers: llvm-commits, dexonsmith, steven_wu, hiraditya, mehdi_amini.
Herald added a reviewer: deadalnix.
Herald added a project: LLVM.

This patch adds support for token values to describe floating point rounding modes and exception behaviors. The intent is that we will convert the constrained fp intrinsics to use operand bundles with these tokens instead of string metadata arguments to describe the constraints.

The FPEnv.h header file is borrowed from D69552 <https://reviews.llvm.org/D69552>, which I expect to land before this one. My only changes to the as introduced there are to add "num" entries to the enums.


https://reviews.llvm.org/D70261

Files:
  llvm/include/llvm-c/Core.h
  llvm/include/llvm/Bitcode/LLVMBitCodes.h
  llvm/include/llvm/IR/Constants.h
  llvm/include/llvm/IR/FPEnv.h
  llvm/include/llvm/IR/Value.def
  llvm/lib/AsmParser/LLLexer.cpp
  llvm/lib/AsmParser/LLParser.cpp
  llvm/lib/AsmParser/LLToken.h
  llvm/lib/Bitcode/Reader/BitcodeReader.cpp
  llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
  llvm/lib/IR/AsmWriter.cpp
  llvm/lib/IR/Constants.cpp
  llvm/lib/IR/LLVMContextImpl.h
  llvm/test/Assembler/fpconstraint-tokens.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70261.229362.patch
Type: text/x-patch
Size: 16814 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191114/c68f1f78/attachment-0001.bin>


More information about the llvm-commits mailing list