mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2026-02-19 08:43:01 +00:00
Add version select and OpLogicalNot
This commit is contained in:
@@ -27,7 +27,7 @@ using Id = const Op*;
|
||||
|
||||
class Module {
|
||||
public:
|
||||
explicit Module();
|
||||
explicit Module(std::uint32_t version = spv::Version);
|
||||
~Module();
|
||||
|
||||
/**
|
||||
@@ -238,6 +238,11 @@ class Module {
|
||||
/// Make an intermediate object whose value is undefined.
|
||||
Id OpUndef(Id result_type);
|
||||
|
||||
// Logical
|
||||
|
||||
/// Result is true if Operand is false. Result is false if Operand is true.
|
||||
Id OpLogicalNot(Id result_type, Id operand);
|
||||
|
||||
private:
|
||||
Id AddCode(std::unique_ptr<Op> op);
|
||||
|
||||
@@ -247,6 +252,8 @@ class Module {
|
||||
|
||||
Id AddAnnotation(std::unique_ptr<Op> op);
|
||||
|
||||
const std::uint32_t version;
|
||||
|
||||
std::uint32_t bound{1};
|
||||
|
||||
std::set<spv::Capability> capabilities;
|
||||
|
||||
Reference in New Issue
Block a user