LLVM 23.0.0git
AMDGPUMCExpr.cpp File Reference
#include "AMDGPUMCExpr.h"
#include "Utils/AMDGPUBaseInfo.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCAssembler.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/MC/MCValue.h"
#include "llvm/Support/KnownBits.h"
#include "llvm/Support/raw_ostream.h"
#include <functional>
#include <optional>

Go to the source code of this file.

Typedefs

using KnownBitsMap = DenseMap<const MCExpr *, KnownBits>

Functions

static int64_t op (AMDGPUMCExpr::VariantKind Kind, int64_t Arg1, int64_t Arg2)
static bool evaluateMCExprs (ArrayRef< const MCExpr * > Exprs, const MCAssembler *Asm, std::initializer_list< std::reference_wrapper< uint64_t > > Vals)
static KnownBits fromOptionalToKnownBits (std::optional< bool > CompareResult)
static void knownBitsMapHelper (const MCExpr *Expr, KnownBitsMap &KBM, unsigned Depth=0)
static void binaryOpKnownBitsMapHelper (const MCExpr *Expr, KnownBitsMap &KBM, unsigned Depth)
static void unaryOpKnownBitsMapHelper (const MCExpr *Expr, KnownBitsMap &KBM, unsigned Depth)
static void targetOpKnownBitsMapHelper (const MCExpr *Expr, KnownBitsMap &KBM, unsigned Depth)
static const MCExprtryFoldHelper (const MCExpr *Expr, KnownBitsMap &KBM, MCContext &Ctx)

Typedef Documentation

◆ KnownBitsMap

Definition at line 311 of file AMDGPUMCExpr.cpp.

Function Documentation

◆ binaryOpKnownBitsMapHelper()

◆ evaluateMCExprs()

bool evaluateMCExprs ( ArrayRef< const MCExpr * > Exprs,
const MCAssembler * Asm,
std::initializer_list< std::reference_wrapper< uint64_t > > Vals )
static

◆ fromOptionalToKnownBits()

KnownBits fromOptionalToKnownBits ( std::optional< bool > CompareResult)
static

◆ knownBitsMapHelper()

◆ op()

int64_t op ( AMDGPUMCExpr::VariantKind Kind,
int64_t Arg1,
int64_t Arg2 )
static

◆ targetOpKnownBitsMapHelper()

◆ tryFoldHelper()

◆ unaryOpKnownBitsMapHelper()