[all-commits] [llvm/llvm-project] c8ea73: [X86][tablgen] Set ShouldBeEmitted to false when i...

KanRobert via All-commits all-commits at lists.llvm.org
Sat Mar 26 04:11:45 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c8ea7329377f5849205c775c78e5b00f9f52137f
      https://github.com/llvm/llvm-project/commit/c8ea7329377f5849205c775c78e5b00f9f52137f
  Author: Shengchen Kan <shengchen.kan at intel.com>
  Date:   2022-03-26 (Sat, 26 Mar 2022)

  Changed paths:
    M llvm/utils/TableGen/X86FoldTablesEmitter.cpp
    M llvm/utils/TableGen/X86RecognizableInstr.cpp

  Log Message:
  -----------
  [X86][tablgen] Set ShouldBeEmitted to false when isAsmParserOnly is true. NFCI

In fact, an instruction can not be emitted to disassemble table when
`isAsmParserOnly` is true, so `isAsmParserOnly=true` implies
`ShouldBeEmitted=false`.

We check `isAsmParserOnly` in X86FoldTablesEmitter.cpp at a early stage
b/c none of them is foldable.




More information about the All-commits mailing list