2016-09-26 07:00:19 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "ssa_float.h"
|
|
|
|
#include "ssa_int.h"
|
|
|
|
#include "ssa_vec4f.h"
|
|
|
|
|
|
|
|
namespace llvm { class Value; }
|
|
|
|
namespace llvm { class Type; }
|
|
|
|
|
|
|
|
class SSAFloatPtr
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SSAFloatPtr();
|
|
|
|
explicit SSAFloatPtr(llvm::Value *v);
|
|
|
|
static SSAFloatPtr from_llvm(llvm::Value *v) { return SSAFloatPtr(v); }
|
|
|
|
static llvm::Type *llvm_type();
|
|
|
|
SSAFloatPtr operator[](SSAInt index) const;
|
2016-10-01 09:47:21 +00:00
|
|
|
SSAFloatPtr operator[](int index) const { return (*this)[SSAInt(index)]; }
|
2016-10-08 07:29:26 +00:00
|
|
|
SSAFloat load(bool constantScopeDomain) const;
|
|
|
|
SSAVec4f load_vec4f(bool constantScopeDomain) const;
|
|
|
|
SSAVec4f load_unaligned_vec4f(bool constantScopeDomain) const;
|
2016-09-26 07:00:19 +00:00
|
|
|
void store(const SSAFloat &new_value);
|
|
|
|
void store_vec4f(const SSAVec4f &new_value);
|
|
|
|
void store_unaligned_vec4f(const SSAVec4f &new_value);
|
|
|
|
|
|
|
|
llvm::Value *v;
|
|
|
|
};
|