freebsd-skq/contrib/llvm/utils/TableGen
dim b11436dc18 Pull in r352607 from upstream llvm trunk (by Craig Topper):
[X86] Add FPSW as a Def on some FP instructions that were missing it.

Pull in r352608 from upstream llvm trunk (by Craig Topper):

  [X86] Remove a couple places where we unnecessarily pass 0 to the
  EmitPriority of some FP instruction aliases. NFC

  As far as I can tell we already won't emit these aliases due to an
  operand count check in the tablegen code. Removing these because I
  couldn't make sense of the inconsistency between fadd and fmul from
  reading the code.

  I checked the AsmMatcher and AsmWriter files before and after this
  change and there were no differences.

Pull in r353015 from upstream llvm trunk (by Craig Topper):

  [X86] Print %st(0) as %st when its implicit to the instruction.
  Continue printing it as %st(0) when its encoded in the instruction.

  This is a step back from the change I made in r352985. This appears
  to be more consistent with gcc and objdump behavior.

Pull in r353061 from upstream llvm trunk (by Craig Topper):

  [X86] Print all register forms of x87 fadd/fsub/fdiv/fmul as having
  two arguments where on is %st.

  All of these instructions consume one encoded register and the other
  register is %st. They either write the result to %st or the encoded
  register. Previously we printed both arguments when the encoded
  register was written. And we printed one argument when the result was
  written to %st. For the stack popping forms the encoded register is
  always the destination and we didn't print both operands. This was
  inconsistent with gcc and objdump and just makes the output assembly
  code harder to read.

  This patch changes things to always print both operands making us
  consistent with gcc and objdump. The parser should still be able to
  handle the single register forms just as it did before. This also
  matches the GNU assembler behavior.

Pull in r353141 from upstream llvm trunk (by Craig Topper):

  [X86] Connect the default fpsr and dirflag clobbers in inline
  assembly to the registers we have defined for them.

  Summary:
  We don't currently map these constraints to physical register numbers
  so they don't make it to the MachineIR representation of inline
  assembly.

  This could have problems for proper dependency tracking in the
  machine schedulers though I don't have a test case that shows that.

  Reviewers: rnk

  Reviewed By: rnk

  Subscribers: eraman, llvm-commits

  Tags: #llvm

  Differential Revision: https://reviews.llvm.org/D57641

Pull in r353489 from upstream llvm trunk (by Craig Topper):

  [X86] Add FPCW as a register and start using it as an implicit use on
  floating point instructions.

  Summary:
  FPCW contains the rounding mode control which we manipulate to
  implement fp to integer conversion by changing the roudning mode,
  storing the value to the stack, and then changing the rounding mode
  back. Because we didn't model FPCW and its dependency chain, other
  instructions could be scheduled into the middle of the sequence.

  This patch introduces the register and adds it as an implciit def of
  FLDCW and implicit use of the FP binary arithmetic instructions and
  store instructions. There are more instructions that need to be
  updated, but this is a good start. I believe this fixes at least the
  reduced test case from PR40529.

  Reviewers: RKSimon, spatel, rnk, efriedma, andrew.w.kaylor

  Subscribers: dim, llvm-commits

  Tags: #llvm

  Differential Revision: https://reviews.llvm.org/D57735

These should fix a problem in clang 7.0 where it would sometimes emit
long double floating point instructions in a slightly wrong order,
leading to failures in our libm tests.  In particular, the cbrt_test
test case 'cbrtl_powl' and the trig_test test case 'reduction'.

Reported by:	lwhsu
PR:		234040
Upstream PR:	https://bugs.llvm.org/show_bug.cgi?id=40206
2019-02-10 12:45:33 +00:00
..
AsmMatcherEmitter.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
AsmWriterEmitter.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
AsmWriterInst.cpp
AsmWriterInst.h
Attributes.cpp Merge llvm trunk r321017 to contrib/llvm. 2017-12-20 14:16:56 +00:00
CallingConvEmitter.cpp Merge llvm trunk r321017 to contrib/llvm. 2017-12-20 14:16:56 +00:00
CodeEmitterGen.cpp Merge llvm, clang, lld, lldb, compiler-rt and libc++ r307894, and update 2017-07-13 21:58:45 +00:00
CodeGenDAGPatterns.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
CodeGenDAGPatterns.h Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
CodeGenHwModes.cpp Merge llvm trunk r321017 to contrib/llvm. 2017-12-20 14:16:56 +00:00
CodeGenHwModes.h Merge llvm trunk r321017 to contrib/llvm. 2017-12-20 14:16:56 +00:00
CodeGenInstruction.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
CodeGenInstruction.h Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
CodeGenIntrinsics.h Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
CodeGenMapTable.cpp Merge llvm trunk r338150, and resolve conflicts. 2018-07-30 16:33:32 +00:00
CodeGenRegisters.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
CodeGenRegisters.h Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
CodeGenSchedule.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
CodeGenSchedule.h Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
CodeGenTarget.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
CodeGenTarget.h Merge llvm trunk r338150, and resolve conflicts. 2018-07-30 16:33:32 +00:00
CTagsEmitter.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
DAGISelEmitter.cpp Merge llvm trunk r338150, and resolve conflicts. 2018-07-30 16:33:32 +00:00
DAGISelMatcher.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
DAGISelMatcher.h Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
DAGISelMatcherEmitter.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
DAGISelMatcherGen.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
DAGISelMatcherOpt.cpp Merge llvm trunk r338150, and resolve conflicts. 2018-07-30 16:33:32 +00:00
DFAPacketizerEmitter.cpp Merge llvm trunk r338150, and resolve conflicts. 2018-07-30 16:33:32 +00:00
DisassemblerEmitter.cpp Merge llvm trunk r338150, and resolve conflicts. 2018-07-30 16:33:32 +00:00
ExegesisEmitter.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
FastISelEmitter.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
FixedLenDecoderEmitter.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
GlobalISelEmitter.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
InfoByHwMode.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
InfoByHwMode.h Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
InstrDocsEmitter.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
InstrInfoEmitter.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
IntrinsicEmitter.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
OptParserEmitter.cpp Merge llvm trunk r321017 to contrib/llvm. 2017-12-20 14:16:56 +00:00
PredicateExpander.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
PredicateExpander.h Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
PseudoLoweringEmitter.cpp Merge llvm trunk r338150, and resolve conflicts. 2018-07-30 16:33:32 +00:00
RegisterBankEmitter.cpp Merge llvm trunk r338150, and resolve conflicts. 2018-07-30 16:33:32 +00:00
RegisterInfoEmitter.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
RISCVCompressInstEmitter.cpp Merge llvm trunk r338150, and resolve conflicts. 2018-07-30 16:33:32 +00:00
SDNodeProperties.cpp Merge llvm trunk r321414 to contrib/llvm. 2017-12-24 01:04:58 +00:00
SDNodeProperties.h Merge llvm trunk r321414 to contrib/llvm. 2017-12-24 01:04:58 +00:00
SearchableTableEmitter.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
SequenceToOffsetTable.h Merge llvm trunk r321017 to contrib/llvm. 2017-12-20 14:16:56 +00:00
SubtargetEmitter.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
SubtargetFeatureInfo.cpp Merge llvm trunk r338150, and resolve conflicts. 2018-07-30 16:33:32 +00:00
SubtargetFeatureInfo.h Merge llvm trunk r338150, and resolve conflicts. 2018-07-30 16:33:32 +00:00
TableGen.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
TableGenBackends.h Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
Types.cpp Merge llvm, clang, lld, lldb, compiler-rt and libc++ r301441, and update 2017-04-26 22:33:09 +00:00
Types.h Update llvm to trunk r290819 and resolve conflicts. 2017-01-02 21:25:48 +00:00
WebAssemblyDisassemblerEmitter.cpp Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
WebAssemblyDisassemblerEmitter.h Merge llvm trunk r338150, and resolve conflicts. 2018-07-30 16:33:32 +00:00
X86DisassemblerShared.h Merge llvm trunk r338150, and resolve conflicts. 2018-07-30 16:33:32 +00:00
X86DisassemblerTables.cpp Merge llvm trunk r338150, and resolve conflicts. 2018-07-30 16:33:32 +00:00
X86DisassemblerTables.h Merge llvm trunk r338150, and resolve conflicts. 2018-07-30 16:33:32 +00:00
X86EVEX2VEXTablesEmitter.cpp Merge llvm trunk r338150, and resolve conflicts. 2018-07-30 16:33:32 +00:00
X86FoldTablesEmitter.cpp Merge llvm trunk r338150, and resolve conflicts. 2018-07-30 16:33:32 +00:00
X86ModRMFilters.cpp
X86ModRMFilters.h Merge llvm trunk r351319, resolve conflicts, and update FREEBSD-Xlist. 2019-01-20 11:41:25 +00:00
X86RecognizableInstr.cpp Pull in r352607 from upstream llvm trunk (by Craig Topper): 2019-02-10 12:45:33 +00:00
X86RecognizableInstr.h Merge llvm trunk r338150, and resolve conflicts. 2018-07-30 16:33:32 +00:00