qzdoom-gpl/src/r_compiler/ssa/ssa_int_ptr.h

29 lines
696 B
C
Raw Normal View History

#pragma once
#include "ssa_float.h"
#include "ssa_int.h"
#include "ssa_vec4i.h"
namespace llvm { class Value; }
namespace llvm { class Type; }
class SSAIntPtr
{
public:
SSAIntPtr();
explicit SSAIntPtr(llvm::Value *v);
static SSAIntPtr from_llvm(llvm::Value *v) { return SSAIntPtr(v); }
static llvm::Type *llvm_type();
SSAIntPtr operator[](SSAInt index) const;
2016-10-01 09:47:21 +00:00
SSAIntPtr operator[](int index) const { return (*this)[SSAInt(index)]; }
SSAInt load() const;
SSAVec4i load_vec4i() const;
SSAVec4i load_unaligned_vec4i() const;
void store(const SSAInt &new_value);
void store_vec4i(const SSAVec4i &new_value);
void store_unaligned_vec4i(const SSAVec4i &new_value);
llvm::Value *v;
};