summaryrefslogtreecommitdiff
path: root/source/binary.h
diff options
context:
space:
mode:
authorLei Zhang <antiagainst@google.com>2015-11-16 10:48:43 -0500
committerLei Zhang <antiagainst@google.com>2015-11-16 17:25:43 -0500
commitaf9906e4e5c851b5bc25a2130ef3f1a7f4aab3fc (patch)
tree9446d1baa3202e6aceff90c696980fc1efddb51b /source/binary.h
parent287cfc1dd7be98ab1f78bbfc82d4f12c1c844a39 (diff)
Use Google comment style and fix typos.
Diffstat (limited to 'source/binary.h')
-rw-r--r--source/binary.h31
1 files changed, 11 insertions, 20 deletions
diff --git a/source/binary.h b/source/binary.h
index bf402741..2d86ab64 100644
--- a/source/binary.h
+++ b/source/binary.h
@@ -32,30 +32,21 @@
// Functions
-/// @brief Grab the header from the SPV module
-///
-/// @param[in] binary the binary module
-/// @param[in] endian the endianness of the module
-/// @param[out] pHeader the returned header
-///
-/// @return result code
+// Grabs the header from the SPIR-V module given in the binary parameter. The
+// endian parameter specifies the endianness of the binary module. On success,
+// returns SPV_SUCCESS and writes the parsed header into *header.
spv_result_t spvBinaryHeaderGet(const spv_const_binary binary,
const spv_endianness_t endian,
- spv_header_t* pHeader);
+ spv_header_t* header);
-/// @brief Determine the type of the desired operand
-///
-/// @param[in] word the operand value
-/// @param[in] index the word index in the instruction
-/// @param[in] opcodeEntry table of specified Opcodes
-/// @param[in] operandTable table of specified operands
-/// @param[in,out] pOperandEntry the entry in the operand table
-///
-/// @return type returned
+// Determines the desired type of an operand. The operand's value is word, and
+// is the index-th word in the instruction described by the opcode_entry opcode
+// table entry. On success, returns SPV_SUCCESS and writes a handle of the
+// operand table entry for this operand into *operand_entry.
spv_operand_type_t spvBinaryOperandInfo(const uint32_t word,
const uint16_t index,
- const spv_opcode_desc opcodeEntry,
- const spv_operand_table operandTable,
- spv_operand_desc* pOperandEntry);
+ const spv_opcode_desc opcode_entry,
+ const spv_operand_table operand_table,
+ spv_operand_desc* operand_entry);
#endif // LIBSPIRV_BINARY_H_