HomeSort by: relevance | last modified time | path
    Searched refs:Remark (Results 1 - 25 of 64) sorted by relevancy

1 2 3

  /src/external/apache2/llvm/dist/llvm/lib/Remarks/
Remark.cpp 1 //===- Remark.cpp ---------------------------------------------------------===//
9 // Implementation of the Remark type and the C API.
13 #include "llvm/Remarks/Remark.h"
20 std::string Remark::getArgsAsMsg() const {
68 extern "C" void LLVMRemarkEntryDispose(LLVMRemarkEntryRef Remark) {
69 delete unwrap(Remark);
72 extern "C" LLVMRemarkType LLVMRemarkEntryGetType(LLVMRemarkEntryRef Remark) {
74 return static_cast<LLVMRemarkType>(unwrap(Remark)->RemarkType);
78 LLVMRemarkEntryGetPassName(LLVMRemarkEntryRef Remark) {
79 return wrap(&unwrap(Remark)->PassName)
    [all...]
YAMLRemarkSerializer.cpp 9 // This file provides the implementation of the YAML remark serializer using
39 template <> struct MappingTraits<remarks::Remark *> {
40 static void mapping(IO &io, remarks::Remark *&Remark) {
43 if (io.mapTag("!Passed", (Remark->RemarkType == Type::Passed)))
45 else if (io.mapTag("!Missed", (Remark->RemarkType == Type::Missed)))
47 else if (io.mapTag("!Analysis", (Remark->RemarkType == Type::Analysis)))
50 (Remark->RemarkType == Type::AnalysisFPCommute)))
53 (Remark->RemarkType == Type::AnalysisAliasing)))
55 else if (io.mapTag("!Failure", (Remark->RemarkType == Type::Failure))
    [all...]
RemarkLinker.cpp 9 // This file provides an implementation of the remark linker.
53 Remark &RemarkLinker::keep(std::unique_ptr<Remark> Remark) {
54 StrTab.internalize(*Remark);
55 auto Inserted = Remarks.insert(std::move(Remark));
64 static bool shouldKeepRemark(const Remark &R) { return R.Loc.hasValue(); }
85 Expected<std::unique_ptr<Remark>> Next = Parser.next();
123 for (const Remark &R : remarks())
BitstreamRemarkParser.h 9 // This file provides the impementation of the Bitstream remark parser.
19 #include "llvm/Remarks/Remark.h"
27 /// Parses and holds the state of the latest parsed remark.
33 /// Temporary remark buffer used when the remarks are stored separately.
54 Expected<std::unique_ptr<Remark>> next() override;
63 /// Parse a Bitstream remark.
64 Expected<std::unique_ptr<Remark>> parseRemark();
72 Expected<std::unique_ptr<Remark>>
BitstreamRemarkSerializer.cpp 9 // This file provides the implementation of the LLVM bitstream remark serializer
75 // The remark version is emitted only if we emit remarks.
124 // Setup the remark block.
127 // The header of a remark.
134 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // Remark Name
141 // The location of a remark.
154 // The hotness of a remark.
208 // Needs a string table that the separate remark file is using.
216 // Contains remarks: emit the remark abbrevs.
224 // Contains remarks: emit the remark abbrevs
    [all...]
YAMLRemarkParser.h 9 // This file provides the impementation of the YAML remark parser.
18 #include "llvm/Remarks/Remark.h"
49 /// Regular YAML to Remark parser.
62 /// If we parse remark metadata in separate mode, we need to open a new file
68 Expected<std::unique_ptr<Remark>> next() override;
82 /// Parse a YAML remark to a remarks::Remark object.
83 Expected<std::unique_ptr<Remark>> parseRemark(yaml::Document &Remark);
84 /// Parse the type of a remark to an enum type
    [all...]
RemarkStringTable.cpp 9 // Implementation of the Remark string table used at remark generation.
15 #include "llvm/Remarks/Remark.h"
41 void StringTable::internalize(Remark &R) {
  /src/external/apache2/llvm/dist/llvm/include/llvm-c/
Remarks.h 10 |* This header provides a public interface to a remark diagnostics library. *|
39 * The type of the emitted remark.
136 * A remark emitted by the compiler.
143 * Free the resources used by the remark entry.
147 extern void LLVMRemarkEntryDispose(LLVMRemarkEntryRef Remark);
150 * The type of the remark. For example, it can allow users to only keep the
155 extern enum LLVMRemarkType LLVMRemarkEntryGetType(LLVMRemarkEntryRef Remark);
158 * Get the name of the pass that emitted this remark.
163 LLVMRemarkEntryGetPassName(LLVMRemarkEntryRef Remark);
166 * Get an identifier of the remark
    [all...]
  /src/external/apache2/llvm/dist/llvm/include/llvm/Remarks/
Remark.h 1 //===-- llvm/Remarks/Remark.h - The remark type -----------------*- C++/-*-===//
26 /// The current version of the remark entry.
29 /// The debug location used to track a remark back to the source file.
31 /// Absolute path of the source file corresponding to this remark.
53 /// The type of the remark.
66 /// A remark type used for both emission and parsing.
67 struct Remark {
68 /// The type of the remark.
71 /// Name of the pass that triggers the emission of this remark
    [all...]
RemarkLinker.h 9 // This file provides an interface to link together multiple remark files.
17 #include "llvm/Remarks/Remark.h"
31 bool operator()(const std::unique_ptr<Remark> &LHS,
32 const std::unique_ptr<Remark> &RHS) const {
47 std::set<std::unique_ptr<Remark>, RemarkPtrCompare> Remarks;
49 /// A path to append before the external file path found in remark metadata.
52 /// Keep this remark. If it's already in the set, discard it.
53 Remark &keep(std::unique_ptr<Remark> Remark);
    [all...]
RemarkStringTable.h 31 struct Remark;
59 void internalize(Remark &R);
YAMLRemarkSerializer.h 1 //===-- YAMLRemarkSerializer.h - YAML Remark serialization ---*- C++ -*-===//
22 /// Serialize the remarks to YAML. One remark entry looks like this:
40 void emit(const Remark &Remark) override;
64 /// Serialize the remarks to YAML using a string table. An remark entry looks
65 /// like the regular YAML remark but instead of string entries it's using
82 void emit(const Remark &Remark) override;
BitstreamRemarkSerializer.h 35 /// | Remark version
43 /// | Remark version
92 /// The remark version in the metadata block.
111 /// Emit a remark block. The string table is required.
112 void emitRemarkBlock(const Remark &Remark, StringTable &StrTab);
121 /// Implementation of the remark serializer using LLVM bitstream.
127 /// 3) A number of remark blocks.
141 /// Emit a remark to the stream. This also emits the metadata associated to
144 void emit(const Remark &Remark) override
    [all...]
RemarkSerializer.h 1 //===-- RemarkSerializer.h - Remark serialization interface -----*- C++ -*-===//
16 #include "llvm/Remarks/Remark.h"
36 /// This is the base class for a remark serializer.
41 /// The open raw_ostream that the remark diagnostics are emitted to.
55 /// Emit a remark to the stream.
56 virtual void emit(const Remark &Remark) = 0;
63 /// This is the base class for a remark metadata serializer.
75 /// Create a remark serializer.
80 /// Create a remark serializer that uses a pre-filled string table
    [all...]
RemarkParser.h 1 //===-- llvm/Remarks/Remark.h - The remark type -----------------*- C++/-*-===//
18 #include "llvm/Remarks/Remark.h"
38 /// Parser used to parse a raw buffer to remarks::Remark objects.
42 /// Path to prepend when opening an external remark file.
47 /// If no error occurs, this returns a valid Remark object.
52 virtual Expected<std::unique_ptr<Remark>> next() = 0;
  /src/external/apache2/llvm/dist/clang/include/clang/Frontend/
SerializedDiagnostics.h 49 Remark
  /src/external/apache2/llvm/dist/llvm/lib/CodeGen/
MachineOptimizationRemarkEmitter.cpp 43 DiagnosticInfoMIROptimization &Remark) {
44 const MachineBasicBlock *MBB = Remark.getBlock();
46 Remark.setHotness(computeHotness(*MBB));
92 static const char ore_name[] = "Machine Optimization Remark Emitter";
93 #define ORE_NAME "machine-opt-remark-emitter"
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
AnnotationRemarks.cpp 36 // For every auto-init annotation generate a separate remark.
47 AutoInitRemark Remark(ORE, REMARK_PASS, DL, TLI);
54 Remark.inspectStore(*SI);
62 Remark.inspectIntrinsicCall(*II);
71 Remark.inspectCall(*CI);
75 Remark.inspectUnknown(*I);
  /src/external/apache2/llvm/dist/llvm/lib/Analysis/
InlineAdvisor.cpp 35 /// Flag to add inline messages as callsite attributes 'inline-remark'.
37 InlineRemarkAttribute("inline-remark-attribute", cl::init(false),
39 cl::desc("Enable adding inline-remark attribute to"
303 raw_string_ostream Remark(Buffer);
304 Remark << IC;
305 return Remark.str();
312 Attribute Attr = Attribute::get(CB.getContext(), "inline-remark", Message);
317 /// CallSite. If we return the cost, we will emit an optimisation remark later
409 void llvm::addLocationToRemarks(OptimizationRemark &Remark, DebugLoc DLoc) {
415 Remark << " at callsite "
    [all...]
  /src/external/apache2/llvm/lib/libLLVMRemarks/
Makefile 11 Remark.cpp \
  /src/external/apache2/llvm/dist/clang/lib/Frontend/
TextDiagnosticBuffer.cpp 41 case DiagnosticsEngine::Remark:
65 case DiagnosticsEngine::Remark:
  /src/external/apache2/llvm/dist/llvm/tools/llvm-opt-report/
OptReport.cpp 178 Expected<std::unique_ptr<remarks::Remark>> MaybeRemark = Parser.next();
193 const remarks::Remark &Remark = **MaybeRemark;
195 bool Transformed = Remark.RemarkType == remarks::Type::Passed;
201 for (const remarks::Argument &Arg : Remark.Args) {
210 const Optional<remarks::RemarkLocation> &Loc = Remark.Loc;
227 if (Remark.PassName == "inline") {
229 [std::string(Remark.FunctionName)][Column];
231 } else if (Remark.PassName == "loop-unroll") {
233 [std::string(Remark.FunctionName)][Column]
    [all...]
  /src/external/apache2/llvm/dist/clang/include/clang/Basic/
DiagnosticOptions.h 42 Remark = 1 << 1,
45 All = Note | Remark | Warning | Error
  /src/external/apache2/llvm/dist/llvm/include/llvm/IR/
LLVMRemarkStreamer.h 10 // serializable remarks::Remark objects.
29 /// Convert diagnostics into remark objects.
32 remarks::Remark toRemark(const DiagnosticInfoOptimizationBase &Diag) const;
  /src/external/apache2/llvm/dist/llvm/tools/opt-viewer/
optrecord.py 56 class Remark(yaml.YAMLObject):
76 # remark text.
237 class Analysis(Remark):
253 class Passed(Remark):
261 class Missed(Remark):
282 for remark in docs:
283 remark.canonicalize()
285 if not hasattr(remark, 'DebugLoc') or remark.key in all_remarks:
288 if filter_e and not filter_e.search(remark.Pass)
    [all...]

Completed in 28 milliseconds

1 2 3