Lines Matching defs:SPIRVRegularizer
1 //===-- SPIRVRegularizer.cpp - regularize IR for SPIR-V ---------*- C++ -*-===//
33 struct SPIRVRegularizer : public FunctionPass, InstVisitor<SPIRVRegularizer> {
38 SPIRVRegularizer() : FunctionPass(ID) {
56 char SPIRVRegularizer::ID = 0;
58 INITIALIZE_PASS(SPIRVRegularizer, DEBUG_TYPE, "SPIR-V Regularizer", false,
69 void SPIRVRegularizer::runLowerConstExpr(Function &F) {
168 void SPIRVRegularizer::visitCallInst(CallInst &CI) {
186 void SPIRVRegularizer::visitCallScalToVec(CallInst *CI, StringRef MangledName,
247 bool SPIRVRegularizer::runOnFunction(Function &F) {
260 return new SPIRVRegularizer();