[all-commits] [llvm/llvm-project] 3fdd43: [X86] Use a macro to convert X86ISD names to strin...

topperc via All-commits all-commits at lists.llvm.org
Sat Jan 25 18:36:18 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3fdd435a4b8dc89de46562c903f9d825002ca949
      https://github.com/llvm/llvm-project/commit/3fdd435a4b8dc89de46562c903f9d825002ca949
  Author: Craig Topper <craig.topper at intel.com>
  Date:   2020-01-25 (Sat, 25 Jan 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp

  Log Message:
  -----------
  [X86] Use a macro to convert X86ISD names to strings in getTargetNodeName.

Every case in the switch had a string version of themselves. Two
of them had a typo that used : instead of ::

By using a macro we can automate the string creation and avoid
the possibility of typos like this.

This is similar to what is done on the AMDGPU target.




More information about the All-commits mailing list