clang API Documentation
#include <CodeGenFunction.h>
Public Types | |
typedef llvm::PointerIntPair < llvm::Value *, 1, bool > | saved_type |
Static Public Member Functions | |
static bool | needsSaving (llvm::Value *value) |
Answer whether the given value needs extra work to be saved. | |
static saved_type | save (CodeGenFunction &CGF, llvm::Value *value) |
Try to save the given value. | |
static llvm::Value * | restore (CodeGenFunction &CGF, saved_type value) |
Helper class with most of the code for saving a value for a conditional expression cleanup.
Definition at line 2794 of file CodeGenFunction.h.
typedef llvm::PointerIntPair<llvm::Value*, 1, bool> clang::CodeGen::DominatingLLVMValue::saved_type |
Definition at line 2795 of file CodeGenFunction.h.
static bool clang::CodeGen::DominatingLLVMValue::needsSaving | ( | llvm::Value * | value | ) | [inline, static] |
Answer whether the given value needs extra work to be saved.
Definition at line 2798 of file CodeGenFunction.h.
static llvm::Value* clang::CodeGen::DominatingLLVMValue::restore | ( | CodeGenFunction & | CGF, |
saved_type | value | ||
) | [inline, static] |
Reimplemented in clang::CodeGen::DominatingPointer< T, true >.
Definition at line 2819 of file CodeGenFunction.h.
References clang::CodeGen::CodeGenFunction::Builder.
Referenced by clang::CodeGen::DominatingPointer< T, true >::restore().
static saved_type clang::CodeGen::DominatingLLVMValue::save | ( | CodeGenFunction & | CGF, |
llvm::Value * | value | ||
) | [inline, static] |
Try to save the given value.
Definition at line 2808 of file CodeGenFunction.h.
References clang::CodeGen::CodeGenFunction::Builder, and clang::CodeGen::CodeGenFunction::CreateTempAlloca().