[all-commits] [llvm/llvm-project] c440b9: [TargetLowering] move "o" and "X" constraint handl...

Nick Desaulniers via All-commits all-commits at lists.llvm.org
Mon Apr 19 10:54:00 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c440b97d89994feb965a9026bc121d154f7b4584
      https://github.com/llvm/llvm-project/commit/c440b97d89994feb965a9026bc121d154f7b4584
  Author: Nick Desaulniers <ndesaulniers at google.com>
  Date:   2021-04-19 (Mon, 19 Apr 2021)

  Changed paths:
    M llvm/include/llvm/CodeGen/TargetLowering.h
    M llvm/lib/Target/AArch64/AArch64ISelLowering.h
    M llvm/lib/Target/ARM/ARMISelLowering.h
    M llvm/lib/Target/Hexagon/HexagonISelLowering.h
    M llvm/lib/Target/PowerPC/PPCISelLowering.h
    M llvm/lib/Target/Sparc/SparcISelLowering.h
    M llvm/lib/Target/X86/X86ISelLowering.h

  Log Message:
  -----------
  [TargetLowering] move "o" and "X" constraint handling to base class

These constraints are machine agnostic; there's no reason to handle
these per-arch. If arches don't support these constraints, then they
will fail elsewhere during instruction selection. We don't need virtual
calls to look these up; TargetLowering::getInlineAsmMemConstraint should
only be overridden by architectures with additional unique memory
constraints.

Reviewed By: echristo, MaskRay

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




More information about the All-commits mailing list