Skip to content

Commit

Permalink
Changes in code.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaladreips authored and igcbot committed Aug 25, 2024
1 parent 601965e commit 97f373a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
13 changes: 13 additions & 0 deletions IGC/GenISAIntrinsics/GenIntrinsicInst.h
Original file line number Diff line number Diff line change
Expand Up @@ -1526,6 +1526,19 @@ class InlineDataIntrinsic : public GenIntrinsicInst {
}
};

class GlobalQueuePointerIntrinsic : public GenIntrinsicInst {
public:
// Methods for support type inquiry through isa, cast, and dyn_cast:
static inline bool classof(const GenIntrinsicInst* I) {
GenISAIntrinsic::ID ID = I->getIntrinsicID();
return ID == GenISAIntrinsic::GenISA_GlobalQueuePointer;
}

static inline bool classof(const Value* V) {
return isa<GenIntrinsicInst>(V) && classof(cast<GenIntrinsicInst>(V));
}
};

class SWStackPtrIntrinsic : public GenIntrinsicInst {
public:
// Methods for support type inquiry through isa, cast, and dyn_cast:
Expand Down
12 changes: 11 additions & 1 deletion IGC/GenISAIntrinsics/generator/input/Intrinsic_definitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9855,7 +9855,17 @@ intrinsics:
- !AttributeID "ReadNone"
- !<IntrinsicDefinition>
name: "GenISA_GlobalBufferPointer"
comment: "Raytracing: per lane stack size"
comment: "Raytracing: Pointer to the global ray"
return_definition: !<ReturnDefinition>
type_definition: *p_any_
comment: ""
arguments: []
attributes:
- !AttributeID "NoUnwind"
- !AttributeID "ReadNone"
- !<IntrinsicDefinition>
name: "GenISA_GlobalQueuePointer"
comment: "Raytracing/AtomicPullSWTileWalk: Pointer to the global queue struct"
return_definition: !<ReturnDefinition>
type_definition: *p_any_
comment: ""
Expand Down

0 comments on commit 97f373a

Please sign in to comment.