Skip to content
Snippets Groups Projects
Commit 4edfd5a7 authored by Akash Kothari's avatar Akash Kothari :speech_balloon:
Browse files

Assert that the VISC launch's streaming value is a defined constant.

parent 5d5a7170
No related branches found
No related tags found
No related merge requests found
...@@ -943,6 +943,7 @@ bool GenVISC::runOnModule(Module &M) { ...@@ -943,6 +943,7 @@ bool GenVISC::runOnModule(Module &M) {
Constant* F = ConstantExpr::getPointerCast(graphFunc, Type::getInt8PtrTy(Ctx)); Constant* F = ConstantExpr::getPointerCast(graphFunc, Type::getInt8PtrTy(Ctx));
ConstantInt* Op = cast<ConstantInt>(CI->getArgOperand(0)); ConstantInt* Op = cast<ConstantInt>(CI->getArgOperand(0));
assert(Op && "VISC launch's streaming argument is a constant value.");
Value* isStreaming = Op->isZero()? ConstantInt::getFalse(Ctx) Value* isStreaming = Op->isZero()? ConstantInt::getFalse(Ctx)
: ConstantInt::getTrue(Ctx); : ConstantInt::getTrue(Ctx);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment