[all-commits] [llvm/llvm-project] cea807: [IRSim][IROutliner] Adding InstVisitor to disallow...

Andrew Litteken via All-commits all-commits at lists.llvm.org
Thu Dec 17 17:40:02 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: cea807602a2fb0b8d79b0eef30ce717ae4645fbc
      https://github.com/llvm/llvm-project/commit/cea807602a2fb0b8d79b0eef30ce717ae4645fbc
  Author: Andrew Litteken <andrew.litteken at gmail.com>
  Date:   2020-12-17 (Thu, 17 Dec 2020)

  Changed paths:
    M llvm/include/llvm/Transforms/IPO/IROutliner.h
    M llvm/lib/Transforms/IPO/IROutliner.cpp
    A llvm/test/Transforms/IROutliner/illegal-allocas.ll
    A llvm/test/Transforms/IROutliner/illegal-assumes.ll
    A llvm/test/Transforms/IROutliner/illegal-branches.ll
    A llvm/test/Transforms/IROutliner/illegal-callbr.ll
    A llvm/test/Transforms/IROutliner/illegal-calls.ll
    A llvm/test/Transforms/IROutliner/illegal-catchpad.ll
    A llvm/test/Transforms/IROutliner/illegal-cleanup.ll
    A llvm/test/Transforms/IROutliner/illegal-frozen.ll
    A llvm/test/Transforms/IROutliner/illegal-gep.ll
    A llvm/test/Transforms/IROutliner/illegal-invoke.ll
    A llvm/test/Transforms/IROutliner/illegal-landingpad.ll
    A llvm/test/Transforms/IROutliner/illegal-memcpy.ll
    A llvm/test/Transforms/IROutliner/illegal-memmove.ll
    A llvm/test/Transforms/IROutliner/illegal-memset.ll
    A llvm/test/Transforms/IROutliner/illegal-phi-nodes.ll
    A llvm/test/Transforms/IROutliner/illegal-vaarg.ll
    A llvm/test/Transforms/IROutliner/legal-debug.ll

  Log Message:
  -----------
  [IRSim][IROutliner] Adding InstVisitor to disallow certain operations.

This adds a custom InstVisitor to return false on instructions that
should not be allowed to be outlined.  These match the illegal
instructions in the IRInstructionMapper with exception of the addition
of the llvm.assume intrinsic.

Tests all the tests marked: illegal-*-.ll with a test for each kind of
instruction that has been marked as illegal.

Reviewers: jroelofs, paquette

Differential Revisions: https://reviews.llvm.org/D86976




More information about the All-commits mailing list