[all-commits] [llvm/llvm-project] 58f324: [Attributor] Function level undefined behavior att...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Tue Dec 24 17:23:34 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 58f324a468ffc66398199f1a55218e10b718e495
      https://github.com/llvm/llvm-project/commit/58f324a468ffc66398199f1a55218e10b718e495
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2019-12-24 (Tue, 24 Dec 2019)

  Changed paths:
    M llvm/include/llvm/Transforms/IPO/Attributor.h
    M llvm/lib/Transforms/IPO/Attributor.cpp
    A llvm/test/Transforms/Attributor/undefined_behavior.ll

  Log Message:
  -----------
  [Attributor] Function level undefined behavior attribute

_Eventually_, this attribute will be assigned to a function if it
contains undefined behavior. As a first small step, I tried to make it
loop through the load instructions in a function (eventually, the plan
is to check if a load instructions causes undefined behavior, because
e.g. dereferences a null pointer - Also eventually, this won't happen in
initialize() but in updateImpl()).

Patch By: Stefanos Baziotis (@baziotis)

Reviewed By: jdoerfert

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




More information about the All-commits mailing list