[all-commits] [llvm/llvm-project] 36ea1c: [flang][NFC] Add source line to lowering TODO mess...

jeanPerier via All-commits all-commits at lists.llvm.org
Tue Feb 23 00:02:40 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 36ea1cac1a4226cc55866982104dc3de2cc194bf
      https://github.com/llvm/llvm-project/commit/36ea1cac1a4226cc55866982104dc3de2cc194bf
  Author: Jean Perier <jperier at nvidia.com>
  Date:   2021-02-23 (Tue, 23 Feb 2021)

  Changed paths:
    M flang/include/flang/Lower/Todo.h
    A flang/include/flang/Optimizer/Support/FatalError.h
    M flang/lib/Lower/OpenACC.cpp
    M flang/lib/Lower/OpenMP.cpp

  Log Message:
  -----------
  [flang][NFC] Add source line to lowering TODO messages

- Add a fatal error handler that can print a message with source location
  before aborting.
- Update TODO macro to take an mlir location argument and to use the
  newly introduced fatal error handler.
- Introduce TODO_NOLOC for the few places where no source location is
  easily accessible.

Reviewed By: schweitz

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




More information about the All-commits mailing list