This new pass for llvm-reduce attempts to reduce DebugInfo metadata. The process used is: 1. Scan every MD node, keeping track of nodes already visited. 2. Look for DebugInfo nodes, then record any operands that are lists. 3. Bisect though all the elements of the collected lists. Differential Revision: https://reviews.llvm.org/D132077
24 lines
821 B
C++
24 lines
821 B
C++
//===- ReduceMetadata.h - Specialized Delta Pass --------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file implements two functions used by the Generic Delta Debugging
|
|
// Algorithm, which are used to reduce Metadata nodes.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_TOOLS_LLVM_REDUCE_DELTAS_REDUCEDIMETADATA_H
|
|
#define LLVM_TOOLS_LLVM_REDUCE_DELTAS_REDUCEDIMETADATA_H
|
|
|
|
#include "TestRunner.h"
|
|
|
|
namespace llvm {
|
|
void reduceDIMetadataDeltaPass(TestRunner &Test);
|
|
} // namespace llvm
|
|
|
|
#endif
|