[all-commits] [llvm/llvm-project] 5046c5: [TableGen] Fix instantiating multiclass in foreach

Jyun-Yan You via All-commits all-commits at lists.llvm.org
Fri Jan 29 07:26:23 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5046c5be8459a9631eeb149337776dcbde0e2a0b
      https://github.com/llvm/llvm-project/commit/5046c5be8459a9631eeb149337776dcbde0e2a0b
  Author: J-Y You <jyyou.tw at gmail.com>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M llvm/lib/TableGen/TGParser.cpp
    M llvm/test/TableGen/foreach-multiclass.td

  Log Message:
  -----------
  [TableGen] Fix instantiating multiclass in foreach

If multiclass argument comes from loop varaible and argument is record type,
it will not recognize the type. This patch ensures that loop variables are
resolved correctly.

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




More information about the All-commits mailing list