lib/HLSL/HLSignatureLower.cpp
// Helper functions and class for lower signature.
Helper functions and class for lower signature.
Helper functions and class for lower signature .
void GenerateStOutput(Function *stOutput, MutableArrayRef<Value *> args,
                      IRBuilder<> &Builder, bool cast) {
  if (cast) {
    Value *value = args[DXIL::OperandIndex::kStoreOutputValOpIdx];
    args[DXIL::OperandIndex::kStoreOutputValOpIdx] =
        Builder.CreateZExt(value, Builder.getInt32Ty());
  }
  Builder.CreateCall(stOutput, args);
}
void GenerateStOutput ( Function * stOutput , MutableArrayRef < Value * > args , IRBuilder < > & Builder , bool cast ) { if ( cast ) { Value * value = args [ DXIL :: OperandIndex :: kStoreOutputValOpIdx ] ; args [ DXIL :: OperandIndex :: kStoreOutputValOpIdx ] = Builder . CreateZExt ( value , Builder . getInt32Ty ( ) ) ; } Builder . CreateCall ( stOutput , args ) ; }
Helper functions and class for lower signature.
Helper functions and class for lower signature .