Skip to content

Latest commit

 

History

History
102 lines (68 loc) · 2.62 KB

File metadata and controls

102 lines (68 loc) · 2.62 KB
title description ms.date helpviewer_keywords
CompilerPass class
The C++ Build Insights SDK CompilerPass class reference.
02/12/2020
C++ Build Insights
C++ Build Insights SDK
CompilerPass
throughput analysis
build time analysis
vcperf.exe

CompilerPass class

::: moniker range="<=msvc-140"

The C++ Build Insights SDK is compatible with Visual Studio 2017 and later. To see the documentation for these versions, set the Visual Studio Version selector control for this article to Visual Studio 2017 or later. It's found at the top of the table of contents on this page.

::: moniker-end ::: moniker range=">=msvc-150"

The CompilerPass class is used with the MatchEvent, MatchEventInMemberFunction, MatchEventStack, and MatchEventStackInMemberFunction functions. Use it to match a BACK_END_PASS or FRONT_END_PASS event.

Syntax

class CompilerPass : public Activity
{
public:
    enum class PassCode
    {
        FRONT_END,
        BACK_END
    };

    CompilerPass(const RawEvent& event);

    PassCode       PassCode() const;
    const wchar_t* InputSourcePath() const;
    const wchar_t* OutputObjectPath() const;
};

Members

Along with the inherited members from its Activity base class, the CompilerPass class contains the following members:

Constructors

CompilerPass

Enums

PassCode

Value Description
FRONT_END The front-end pass.
BACK_END The back-end pass.

Functions

InputSourcePath
OutputObjectPath
PassCode

CompilerPass

CompilerPass(const RawEvent& event);

Parameters

event
A BACK_END_PASS or FRONT_END_PASS event.

InputSourcePath

const wchar_t* InputSourcePath() const;

Return Value

The absolute path to the input source file processed by this compiler pass.

OutputObjectPath

const wchar_t* OutputObjectPath() const;

Return Value

The absolute path to the output object file produced by this compiler pass.

PassCode

PassCode PassCode() const;

Return Value

A code indicating which compiler pass is represented by this CompilerPass object.

::: moniker-end