OSDN Git Service

[OptRemarks] Add library for parsing optimization remarks
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Wed, 10 Oct 2018 17:58:09 +0000 (17:58 +0000)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Wed, 10 Oct 2018 17:58:09 +0000 (17:58 +0000)
commit1cc98e6672b6319fdb00b70dd4474aabdadbe193
tree0e37fff1263eada2deff951fb9101db6176fa902
parent3b607cb1fc8c262c2e8496c44814325a8cd0729a
[OptRemarks] Add library for parsing optimization remarks

Add a library that parses optimization remarks (currently YAML, so based
on the YAMLParser).

The goal is to be able to provide tools a remark parser that is not
completely dependent on YAML, in case we decide to change the format
later.

It exposes a C API which takes a handler that is called with the remark
structure.

It adds a libLLVMOptRemark.a static library, and it's used in-tree by
the llvm-opt-report tool (from which the parser has been mostly moved
out).

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@344162 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm-c/OptRemarks.h [new file with mode: 0644]
lib/CMakeLists.txt
lib/LLVMBuild.txt
lib/OptRemarks/CMakeLists.txt [new file with mode: 0644]
lib/OptRemarks/LLVMBuild.txt [new file with mode: 0644]
lib/OptRemarks/OptRemarksParser.cpp [new file with mode: 0644]
tools/llvm-opt-report/CMakeLists.txt
tools/llvm-opt-report/OptReport.cpp
unittests/CMakeLists.txt
unittests/OptRemarks/CMakeLists.txt [new file with mode: 0644]
unittests/OptRemarks/OptRemarksParsingTest.cpp [new file with mode: 0644]