@@ -1484,7 +1484,8 @@ static void ValidateResourceDxilOp(CallInst *CI, DXIL::OpCode opcode,
14841484 }
14851485 LLVM_FALLTHROUGH;
14861486 case DXIL::OpCode::RawBufferVectorLoad: {
1487- Value *handle = CI->getOperand (DXIL::OperandIndex::kRawBufferLoadHandleOpIdx );
1487+ Value *handle =
1488+ CI->getOperand (DXIL::OperandIndex::kRawBufferLoadHandleOpIdx );
14881489 DXIL::ComponentType compTy;
14891490 DXIL::ResourceClass resClass;
14901491 DXIL::ResourceKind resKind =
@@ -1500,7 +1501,8 @@ static void ValidateResourceDxilOp(CallInst *CI, DXIL::OpCode opcode,
15001501 if (!isa<ConstantInt>(CI->getOperand (alignIdx)))
15011502 ValCtx.EmitInstrError (CI, ValidationRule::InstrConstAlignForRawBuf);
15021503
1503- Value *offset = CI->getOperand (DXIL::OperandIndex::kRawBufferLoadElementOffsetOpIdx );
1504+ Value *offset =
1505+ CI->getOperand (DXIL::OperandIndex::kRawBufferLoadElementOffsetOpIdx );
15041506 switch (resKind) {
15051507 case DXIL::ResourceKind::RawBuffer:
15061508 if (!isa<UndefValue>(offset)) {
@@ -1530,15 +1532,17 @@ static void ValidateResourceDxilOp(CallInst *CI, DXIL::OpCode opcode,
15301532 DxilInst_RawBufferStore bufSt (CI);
15311533 ConstantInt *mask = dyn_cast<ConstantInt>(bufSt.get_mask ());
15321534 unsigned stValMask =
1533- StoreValueToMask ({bufSt.get_value0 (), bufSt.get_value1 (),
1534- bufSt.get_value2 (), bufSt.get_value3 ()});
1535+ StoreValueToMask ({bufSt.get_value0 (), bufSt.get_value1 (),
1536+ bufSt.get_value2 (), bufSt.get_value3 ()});
15351537
15361538 if (!ValidateStorageMasks (CI, opcode, mask, stValMask, false /* isTyped*/ ,
15371539 ValCtx))
15381540 return ;
1539- } LLVM_FALLTHROUGH;
1541+ }
1542+ LLVM_FALLTHROUGH;
15401543 case DXIL::OpCode::RawBufferVectorStore: {
1541- Value *handle = CI->getOperand (DXIL::OperandIndex::kRawBufferStoreHandleOpIdx );
1544+ Value *handle =
1545+ CI->getOperand (DXIL::OperandIndex::kRawBufferStoreHandleOpIdx );
15421546 DXIL::ComponentType compTy;
15431547 DXIL::ResourceClass resClass;
15441548 DXIL::ResourceKind resKind =
@@ -1552,12 +1556,14 @@ static void ValidateResourceDxilOp(CallInst *CI, DXIL::OpCode opcode,
15521556 alignIdx = DXIL::OperandIndex::kRawBufferVectorStoreAlignmentOpIdx ;
15531557 unsigned valueIx = DXIL::OperandIndex::kRawBufferVectorStoreValOpIdx ;
15541558 if (isa<UndefValue>(CI->getOperand (valueIx)))
1555- ValCtx.EmitInstrError (CI, ValidationRule::InstrUndefinedValueForUAVStore);
1559+ ValCtx.EmitInstrError (CI,
1560+ ValidationRule::InstrUndefinedValueForUAVStore);
15561561 }
15571562 if (!isa<ConstantInt>(CI->getOperand (alignIdx)))
15581563 ValCtx.EmitInstrError (CI, ValidationRule::InstrConstAlignForRawBuf);
15591564
1560- Value *offset = CI->getOperand (DXIL::OperandIndex::kRawBufferStoreElementOffsetOpIdx );
1565+ Value *offset =
1566+ CI->getOperand (DXIL::OperandIndex::kRawBufferStoreElementOffsetOpIdx );
15611567 switch (resKind) {
15621568 case DXIL::ResourceKind::RawBuffer:
15631569 if (!isa<UndefValue>(offset)) {
0 commit comments