mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Add FunctionFamily and LLVMDbgOp enums to DXIL::Function
Saves having to do repeated string comparisons for function calls to identify if the instruction is a DXOp call or an LLVM Dbg call. The LLVM Dbg calls are unique and the specific llvm dbg operation is stored in the DXIL::Function The DXOp calls are not unique and the zero'th argument of the CALL Instruction is used to determine the DXOp opcode.
This commit is contained in:
@@ -52,6 +52,20 @@ namespace DXIL
|
||||
static const rdcstr DXIL_FAKE_OUTPUT_STRUCT_NAME("_OUT");
|
||||
static const rdcstr DXIL_FAKE_INPUT_STRUCT_NAME("_IN");
|
||||
|
||||
enum class FunctionFamily : uint8_t
|
||||
{
|
||||
LLVM,
|
||||
DXOp,
|
||||
LLVMDbg,
|
||||
};
|
||||
|
||||
enum class LLVMDbgOp : uint8_t
|
||||
{
|
||||
Unknown = 0,
|
||||
Declare,
|
||||
Value,
|
||||
};
|
||||
|
||||
struct BumpAllocator
|
||||
{
|
||||
BumpAllocator(size_t totalSize);
|
||||
@@ -1365,6 +1379,9 @@ struct Function : public Value
|
||||
|
||||
rdcarray<UselistEntry> uselist;
|
||||
AttachedMetadata attachedMeta;
|
||||
|
||||
FunctionFamily family = FunctionFamily::LLVM;
|
||||
LLVMDbgOp llvmDbgOp = LLVMDbgOp::Unknown;
|
||||
};
|
||||
|
||||
class LLVMOrderAccumulator
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user