Mneme
Mneme a tool allowing recording the execution of a GPU (CUDA/HIP) kernel and replaying that kernel as an independent executable.
Loading...
Searching...
No Matches
value.cpp File Reference
#include "core.h"
#include "llvm-c/Core.h"
#include <cstdint>
#include <llvm-c/Types.h>
#include <llvm/IR/Constant.h>
#include <llvm/IR/Constants.h>
#include <string>
#include <iostream>
#include "llvm/IR/Module.h"
#include "llvm/Analysis/DOTGraphTraitsPass.h"
#include "llvm/IR/Attributes.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/GlobalObject.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/Value.h"

Classes

struct  BlocksIterator
struct  ArgumentsIterator
struct  InstructionsIterator
struct  OperandsIterator
struct  ConstantDataIterator
struct  IncomingBlocksIterator
struct  IndicesIterator

Namespaces

namespace  llvm

Typedefs

typedef OpaqueBlocksIterator * LLVMBlocksIteratorRef
typedef OpaqueArgumentsIterator * LLVMArgumentsIteratorRef
typedef OpaqueInstructionsIterator * LLVMInstructionsIteratorRef
typedef OpaqueOperandsIterator * LLVMOperandsIteratorRef
typedef ConstantDataIterator * LLVMConstantDataIteratorRef
typedef OpaqueIncomingBlocksIterator * LLVMIncomingBlocksIteratorRef
typedef OpaqueIndicesIterator * LLVMIndicesIteratorRef

Functions

 LLVMPY_FunctionBlocksIter (LLVMValueRef F)
 LLVMPY_FunctionArgumentsIter (LLVMValueRef F)
 LLVMPY_BlockInstructionsIter (LLVMValueRef B)
 LLVMPY_OperandsIter (LLVMValueRef I)
 LLVMPY_ConstantDataIter (LLVMValueRef I)
 LLVMPY_PhiIncomingBlocksIter (LLVMValueRef I)
 LLVMPY_IndicesIter (LLVMValueRef I)
 LLVMPY_BlocksIterNext (LLVMBlocksIteratorRef GI)
 LLVMPY_ArgumentsIterNext (LLVMArgumentsIteratorRef GI)
 LLVMPY_InstructionsIterNext (LLVMInstructionsIteratorRef GI)
 LLVMPY_OperandsIterNext (LLVMOperandsIteratorRef GI)
 LLVMPY_ConstantDataIterNext (LLVMConstantDataIteratorRef CDI)
 LLVMPY_IncomingBlocksIterNext (LLVMIncomingBlocksIteratorRef GI)
 LLVMPY_IndicesIterNext (LLVMIndicesIteratorRef GI)
 LLVMPY_DisposeBlocksIter (LLVMBlocksIteratorRef GI)
 LLVMPY_DisposeArgumentsIter (LLVMArgumentsIteratorRef GI)
 LLVMPY_DisposeInstructionsIter (LLVMInstructionsIteratorRef GI)
 LLVMPY_DisposeOperandsIter (LLVMOperandsIteratorRef GI)
 LLVMPY_DisposeConstantDataIter (LLVMConstantDataIteratorRef DGI)
 LLVMPY_DisposeIncomingBlocksIter (LLVMIncomingBlocksIteratorRef GI)
 LLVMPY_DisposeIndicesIter (LLVMIndicesIteratorRef GI)
 LLVMPY_IsConstant (LLVMValueRef Val)
 LLVMPY_GetConstantIntRawValue (LLVMValueRef Val, bool *littleEndian)
 LLVMPY_GetConstantIntNumWords (LLVMValueRef Val)
 LLVMPY_GetAlignment (LLVMValueRef Val)
 LLVMPY_GetConstantFPValue (LLVMValueRef Val, bool *losesInfo)
 LLVMPY_GetConstantDataAsString (LLVMValueRef Val)
 LLVMPY_GetConstantSequenceElement (LLVMValueRef Val, unsigned i)
 LLVMPY_GetConstantSequenceNumElements (LLVMValueRef Val)
 LLVMPY_HasInitializer (LLVMValueRef Val)
 LLVMPY_GetInitializer (LLVMValueRef Val)
 LLVMPY_ConstantExprAsInstruction (LLVMValueRef Val)
 LLVMPY_GetValueKind (LLVMValueRef Val)
 LLVMPY_PrintValueToString (LLVMValueRef Val, const char **outstr)
 LLVMPY_GetValueName (LLVMValueRef Val)
 LLVMPY_SetValueName (LLVMValueRef Val, const char *Name)
 LLVMPY_GetGlobalParent (LLVMValueRef Val)
 LLVMPY_SetLinkage (LLVMValueRef Val, int Linkage)
 LLVMPY_GetLinkage (LLVMValueRef Val)
 LLVMPY_SetVisibility (LLVMValueRef Val, int Visibility)
 LLVMPY_GetVisibility (LLVMValueRef Val)
 LLVMPY_SetDLLStorageClass (LLVMValueRef Val, int DLLStorageClass)
 LLVMPY_GetDLLStorageClass (LLVMValueRef Val)
 LLVMPY_IsDeclaration (LLVMValueRef GV)
 LLVMPY_WriteCFG (LLVMValueRef Fval, const char **OutStr, int ShowInst)
 LLVMPY_GetOpcodeName (LLVMValueRef Val)
 LLVMPY_TypeOfMemory (LLVMValueRef Val)
 LLVMPY_GetFunctionDefinitionFileName (LLVMValueRef Val)
 API_EXPORT (const char *) LLVMPY_GetFunctionDefinitionRoot(LLVMValueRef Val)
 LLVMPY_GetFunctionLineLoc (LLVMValueRef Val)

Typedef Documentation

◆ LLVMArgumentsIteratorRef

typedef OpaqueArgumentsIterator* LLVMArgumentsIteratorRef

◆ LLVMBlocksIteratorRef

typedef OpaqueBlocksIterator* LLVMBlocksIteratorRef

◆ LLVMConstantDataIteratorRef

◆ LLVMIncomingBlocksIteratorRef

typedef OpaqueIncomingBlocksIterator* LLVMIncomingBlocksIteratorRef

◆ LLVMIndicesIteratorRef

typedef OpaqueIndicesIterator* LLVMIndicesIteratorRef

◆ LLVMInstructionsIteratorRef

typedef OpaqueInstructionsIterator* LLVMInstructionsIteratorRef

◆ LLVMOperandsIteratorRef

typedef OpaqueOperandsIterator* LLVMOperandsIteratorRef

Function Documentation

◆ API_EXPORT()

API_EXPORT ( const char * )

◆ LLVMPY_ArgumentsIterNext()

LLVMPY_ArgumentsIterNext ( LLVMArgumentsIteratorRef GI)

◆ LLVMPY_BlockInstructionsIter()

LLVMPY_BlockInstructionsIter ( LLVMValueRef B)

◆ LLVMPY_BlocksIterNext()

LLVMPY_BlocksIterNext ( LLVMBlocksIteratorRef GI)

◆ LLVMPY_ConstantDataIter()

LLVMPY_ConstantDataIter ( LLVMValueRef I)

◆ LLVMPY_ConstantDataIterNext()

LLVMPY_ConstantDataIterNext ( LLVMConstantDataIteratorRef CDI)

◆ LLVMPY_ConstantExprAsInstruction()

LLVMPY_ConstantExprAsInstruction ( LLVMValueRef Val)

◆ LLVMPY_DisposeArgumentsIter()

LLVMPY_DisposeArgumentsIter ( LLVMArgumentsIteratorRef GI)

◆ LLVMPY_DisposeBlocksIter()

LLVMPY_DisposeBlocksIter ( LLVMBlocksIteratorRef GI)

◆ LLVMPY_DisposeConstantDataIter()

LLVMPY_DisposeConstantDataIter ( LLVMConstantDataIteratorRef DGI)

◆ LLVMPY_DisposeIncomingBlocksIter()

LLVMPY_DisposeIncomingBlocksIter ( LLVMIncomingBlocksIteratorRef GI)

◆ LLVMPY_DisposeIndicesIter()

LLVMPY_DisposeIndicesIter ( LLVMIndicesIteratorRef GI)

◆ LLVMPY_DisposeInstructionsIter()

LLVMPY_DisposeInstructionsIter ( LLVMInstructionsIteratorRef GI)

◆ LLVMPY_DisposeOperandsIter()

LLVMPY_DisposeOperandsIter ( LLVMOperandsIteratorRef GI)

◆ LLVMPY_FunctionArgumentsIter()

LLVMPY_FunctionArgumentsIter ( LLVMValueRef F)

◆ LLVMPY_FunctionBlocksIter()

LLVMPY_FunctionBlocksIter ( LLVMValueRef F)

◆ LLVMPY_GetAlignment()

LLVMPY_GetAlignment ( LLVMValueRef Val)

◆ LLVMPY_GetConstantDataAsString()

LLVMPY_GetConstantDataAsString ( LLVMValueRef Val)

◆ LLVMPY_GetConstantFPValue()

LLVMPY_GetConstantFPValue ( LLVMValueRef Val,
bool * losesInfo )

◆ LLVMPY_GetConstantIntNumWords()

LLVMPY_GetConstantIntNumWords ( LLVMValueRef Val)

◆ LLVMPY_GetConstantIntRawValue()

LLVMPY_GetConstantIntRawValue ( LLVMValueRef Val,
bool * littleEndian )

◆ LLVMPY_GetConstantSequenceElement()

LLVMPY_GetConstantSequenceElement ( LLVMValueRef Val,
unsigned i )

◆ LLVMPY_GetConstantSequenceNumElements()

LLVMPY_GetConstantSequenceNumElements ( LLVMValueRef Val)

◆ LLVMPY_GetDLLStorageClass()

LLVMPY_GetDLLStorageClass ( LLVMValueRef Val)

◆ LLVMPY_GetFunctionDefinitionFileName()

LLVMPY_GetFunctionDefinitionFileName ( LLVMValueRef Val)

◆ LLVMPY_GetFunctionLineLoc()

LLVMPY_GetFunctionLineLoc ( LLVMValueRef Val)

◆ LLVMPY_GetGlobalParent()

LLVMPY_GetGlobalParent ( LLVMValueRef Val)

◆ LLVMPY_GetInitializer()

LLVMPY_GetInitializer ( LLVMValueRef Val)

◆ LLVMPY_GetLinkage()

LLVMPY_GetLinkage ( LLVMValueRef Val)

◆ LLVMPY_GetOpcodeName()

LLVMPY_GetOpcodeName ( LLVMValueRef Val)

◆ LLVMPY_GetValueKind()

LLVMPY_GetValueKind ( LLVMValueRef Val)

◆ LLVMPY_GetValueName()

LLVMPY_GetValueName ( LLVMValueRef Val)

◆ LLVMPY_GetVisibility()

LLVMPY_GetVisibility ( LLVMValueRef Val)

◆ LLVMPY_HasInitializer()

LLVMPY_HasInitializer ( LLVMValueRef Val)

◆ LLVMPY_IncomingBlocksIterNext()

LLVMPY_IncomingBlocksIterNext ( LLVMIncomingBlocksIteratorRef GI)

◆ LLVMPY_IndicesIter()

LLVMPY_IndicesIter ( LLVMValueRef I)

◆ LLVMPY_IndicesIterNext()

LLVMPY_IndicesIterNext ( LLVMIndicesIteratorRef GI)

◆ LLVMPY_InstructionsIterNext()

LLVMPY_InstructionsIterNext ( LLVMInstructionsIteratorRef GI)

◆ LLVMPY_IsConstant()

LLVMPY_IsConstant ( LLVMValueRef Val)

◆ LLVMPY_IsDeclaration()

LLVMPY_IsDeclaration ( LLVMValueRef GV)

◆ LLVMPY_OperandsIter()

LLVMPY_OperandsIter ( LLVMValueRef I)

◆ LLVMPY_OperandsIterNext()

LLVMPY_OperandsIterNext ( LLVMOperandsIteratorRef GI)

◆ LLVMPY_PhiIncomingBlocksIter()

LLVMPY_PhiIncomingBlocksIter ( LLVMValueRef I)

◆ LLVMPY_PrintValueToString()

LLVMPY_PrintValueToString ( LLVMValueRef Val,
const char ** outstr )

◆ LLVMPY_SetDLLStorageClass()

LLVMPY_SetDLLStorageClass ( LLVMValueRef Val,
int DLLStorageClass )

◆ LLVMPY_SetLinkage()

LLVMPY_SetLinkage ( LLVMValueRef Val,
int Linkage )

◆ LLVMPY_SetValueName()

LLVMPY_SetValueName ( LLVMValueRef Val,
const char * Name )

◆ LLVMPY_SetVisibility()

LLVMPY_SetVisibility ( LLVMValueRef Val,
int Visibility )

◆ LLVMPY_TypeOfMemory()

LLVMPY_TypeOfMemory ( LLVMValueRef Val)

◆ LLVMPY_WriteCFG()

LLVMPY_WriteCFG ( LLVMValueRef Fval,
const char ** OutStr,
int ShowInst )