[all-commits] [llvm/llvm-project] de7983: [FPEnv] Teach the IRBuilder about correct use of t...

Kevin P. Neal via All-commits all-commits at lists.llvm.org
Fri Oct 25 09:58:02 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: de79836312e02b3b4a6d322ced971afee6d4ba4d
      https://github.com/llvm/llvm-project/commit/de79836312e02b3b4a6d322ced971afee6d4ba4d
  Author: Kevin P. Neal <kevin.neal at sas.com>
  Date:   2019-10-25 (Fri, 25 Oct 2019)

  Changed paths:
    M llvm/include/llvm/IR/IRBuilder.h
    M llvm/unittests/IR/IRBuilderTest.cpp

  Log Message:
  -----------
  [FPEnv] Teach the IRBuilder about correct use of the strictfp attribute.

The IRBuilder needs to add the strictfp attribute to function
definitions and calls when constrained floating point is enabled.

Since so far all front ends have had to do is flip the constrained
switch, I've made this patch always add the required attributes
when said constrained switch is enabled. This continues to keep
changes to front ends minimal.

Differential Revision: D69312




More information about the All-commits mailing list