[PATCH] D142084: [RFC][X86][MemFold] Upgrade the mechanism of auto-generated Memory Folding Table

Steven Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 16 11:04:20 PDT 2023


steven_wu added inline comments.


================
Comment at: llvm/test/TableGen/x86-auto-memfold.td:2
+// RUN: llvm-tblgen -gen-x86-fold-tables %p/../../lib/Target/X86/X86.td -I %p/../../include -I %p/../../lib/Target/X86/ -I %p/../../include/ -I %p/../../lib/Target/ -o %t1
+// RUN: cmp %p/../../lib/Target/X86/X86MemFoldTables.inc %t1 --ignore-initial=0:568
----------------
yubing wrote:
> skan wrote:
> > Question: what do we skip here?
> the first 568 bytes are:
> 
> ```
> /*===- TableGen'erated file -------------------------------------*- C++ -*-===*\
> |*                                                                            *|
> |* X86 fold tables                                                            *|
> |*                                                                            *|
> |* Automatically generated file, do not edit!                                 *|
> |*                                                                            *|
> \*===----------------------------------------------------------------------===*/
> ```
>From the manpage of `cmp`, it should be like:

cmp [OPTIONS] file1 file2

There are some implementation that cannot take `--ignore-initial` after the files. Can you move it to the front?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142084/new/

https://reviews.llvm.org/D142084



More information about the llvm-commits mailing list