2016-09-26 07:00:19 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "ssa_ubyte.h"
|
|
|
|
#include "ssa_int.h"
|
|
|
|
#include "ssa_vec4i.h"
|
|
|
|
#include "ssa_vec8s.h"
|
|
|
|
#include "ssa_vec16ub.h"
|
|
|
|
|
|
|
|
namespace llvm { class Value; }
|
|
|
|
namespace llvm { class Type; }
|
|
|
|
|
|
|
|
class SSAUBytePtr
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SSAUBytePtr();
|
|
|
|
explicit SSAUBytePtr(llvm::Value *v);
|
|
|
|
static SSAUBytePtr from_llvm(llvm::Value *v) { return SSAUBytePtr(v); }
|
|
|
|
static llvm::Type *llvm_type();
|
|
|
|
SSAUBytePtr operator[](SSAInt index) const;
|
2016-10-01 09:47:21 +00:00
|
|
|
SSAUBytePtr operator[](int index) const { return (*this)[SSAInt(index)]; }
|
2016-10-08 07:29:26 +00:00
|
|
|
SSAUByte load(bool constantScopeDomain) const;
|
|
|
|
SSAVec4i load_vec4ub(bool constantScopeDomain) const;
|
|
|
|
SSAVec16ub load_vec16ub(bool constantScopeDomain) const;
|
|
|
|
SSAVec16ub load_unaligned_vec16ub(bool constantScopeDomain) const;
|
2016-09-26 07:00:19 +00:00
|
|
|
void store(const SSAUByte &new_value);
|
|
|
|
void store_vec4ub(const SSAVec4i &new_value);
|
|
|
|
void store_vec16ub(const SSAVec16ub &new_value);
|
|
|
|
void store_unaligned_vec16ub(const SSAVec16ub &new_value);
|
|
|
|
|
|
|
|
llvm::Value *v;
|
|
|
|
};
|