Skip to content

Commit 313e584

Browse files
bokrzesiigcbot
authored andcommitted
[LLVM16] Add --typed-pointer flag handler
Porting IGC code to LLVM16 * If --typed-pointer flag is set, then we'll use typed-pointers instead of opaque The purpose of it is to allow "typed" LITs to work fine on LLVM 16.
1 parent 033a2de commit 313e584

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

IGC/Compiler/CodeGenContext.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,9 @@ namespace IGC
365365
return result != std::end(cache) ? result : nullptr;
366366
}
367367

368+
static cl::opt<bool>
369+
ForceTypedPointers("typed-pointers", cl::desc("Use typed pointers (if both typed and opaque are used, then opaque will be used)"), cl::init(false));
370+
368371
LLVMContextWrapper::LLVMContextWrapper(bool createResourceDimTypes)
369372
: m_UserAddrSpaceMD(this)
370373
{

0 commit comments

Comments
 (0)