struct DominatingLLVMValue

Declaration

struct DominatingLLVMValue { /* full declaration omitted */ };

Description

Helper class with most of the code for saving a value for a conditional expression cleanup.

Declared at: clang/lib/CodeGen/CodeGenFunction.h:147

Method Overview

  • public static bool needsSaving(llvm::Value * value)
  • public static llvm::Value * restore(clang::CodeGen::CodeGenFunction & CGF, clang::CodeGen::DominatingLLVMValue::saved_type value)
  • public static clang::CodeGen::DominatingLLVMValue::saved_type save(clang::CodeGen::CodeGenFunction & CGF, llvm::Value * value)

Methods

static bool needsSaving(llvm::Value* value)

Description

Answer whether the given value needs extra work to be saved.

Declared at: clang/lib/CodeGen/CodeGenFunction.h:151

Parameters

llvm::Value* value

static llvm::Value* restore(
    clang::CodeGen::CodeGenFunction& CGF,
    clang::CodeGen::DominatingLLVMValue::
        saved_type value)

Declared at: clang/lib/CodeGen/CodeGenFunction.h:161

Parameters

clang::CodeGen::CodeGenFunction& CGF
clang::CodeGen::DominatingLLVMValue::saved_type value

static clang::CodeGen::DominatingLLVMValue::
    saved_type
    save(clang::CodeGen::CodeGenFunction& CGF,
         llvm::Value* value)

Declared at: clang/lib/CodeGen/CodeGenFunction.h:160

Parameters

clang::CodeGen::CodeGenFunction& CGF
llvm::Value* value