Home
last modified time | relevance | path

Searched refs:ConstantInteger32 (Results 1 – 25 of 32) sorted by relevance

12

/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceASanInstrumentation.cpp231 ConstantInteger32 *VarSizeOp; in instrumentFuncStart()
236 : llvm::dyn_cast<ConstantInteger32>(Cur->getSizeInBytes()); in instrumentFuncStart()
249 auto *ByteCount = ConstantInteger32::create(Ctx, IceType_i32, RzSize); in instrumentFuncStart()
262 ConstantInteger32::create(Ctx, IceType_i32, ShadowScaleLog2); in instrumentFuncStart()
264 ConstantInteger32::create(Ctx, IceType_i32, ShadowLength32); in instrumentFuncStart()
280 ConstantInteger32::create(Ctx, IceType_i32, VarSize + RzPadding); in instrumentFuncStart()
327 auto *PoisonConst = ConstantInteger32::create(Ctx, IceType_i32, Poison); in instrumentFuncStart()
328 auto *ZeroConst = ConstantInteger32::create(Ctx, IceType_i32, 0); in instrumentFuncStart()
329 auto *OffsetConst = ConstantInteger32::create(Ctx, IceType_i32, Offset); in instrumentFuncStart()
443 Call->addArg(ConstantInteger32::create(Ctx, IceType_i32, Size)); in instrumentAccess()
[all …]
DIceTargetLoweringX86.h93 using IceType = ConstantInteger32;
103 using IceType = ConstantInteger32;
113 using IceType = ConstantInteger32;
DIceInstMIPS32.cpp469 if (llvm::isa<ConstantInteger32>(getCallTarget())) { in emit()
492 if (llvm::isa<ConstantInteger32>(getCallTarget())) { in emitIAS()
820 ConstantInteger32 *Offset = llvm::cast<ConstantInteger32>(Mem->getOffset()); in emitIAS()
828 ConstantInteger32 *Offset = llvm::cast<ConstantInteger32>(Mem->getOffset()); in emitIAS()
1009 ConstantInteger32 *Offset = llvm::cast<ConstantInteger32>(Mem->getOffset()); in emitIAS()
1098 ConstantInteger32 *Offset = llvm::cast<ConstantInteger32>(Mem->getOffset()); in emitIAS()
DIceTargetLoweringARM32.cpp214 if (auto *Const = llvm::dyn_cast_or_null<ConstantInteger32>(Op)) { in isGuaranteedNonzeroInt()
544 if (auto *C = llvm::dyn_cast<ConstantInteger32>(Src1)) { in genTargetHelperCallFor()
1627 llvm::cast<ConstantInteger32>(Target->Ctx->getConstantInt32(Offset)), in createMemOperand()
1646 llvm::cast<ConstantInteger32>(Target->Ctx->getConstantInt32(OffsetDiff)), in createMemOperand()
1965 ConstantInteger32 *Offset = Mem->getOffset(); in hiOperand()
1982 llvm::cast<ConstantInteger32>(Ctx->getConstantInt32(NextOffsetVal)); in hiOperand()
2056 llvm::dyn_cast<ConstantInteger32>(TotalSize)) { in lowerAlloca()
2313 class Int32Operands : public NumericOperands<ConstantInteger32> {
2385 if (auto *C = llvm::dyn_cast<ConstantInteger32>(Src1)) { in preambleDivRem()
2787 Func, llvm::cast<ConstantInteger32>( in createShiftedOperand()
[all …]
DIceTargetLoweringMIPS32.cpp257 if (auto *Integer = llvm::dyn_cast<ConstantInteger32>(Opnd)) in getConstantMemoryOrder()
693 llvm::cast<ConstantInteger32>(Intrinsic->getArg(0))->getValue()); in genTargetHelperCallFor()
1117 llvm::cast<ConstantInteger32>(Ctx->getConstantInt32(Offset))); in formMemoryOperand()
1639 llvm::cast<ConstantInteger32>(Ctx->getConstantInt32(StackOffset))); in addProlog()
1762 llvm::cast<ConstantInteger32>(Ctx->getConstantInt32(StackOffset))); in addEpilog()
1809 llvm::cast<ConstantInteger32>(Target->Ctx->getConstantInt32(Offset))); in legalizeMovFp()
1943 llvm::cast<ConstantInteger32>(Target->Ctx->getConstantInt32(Offset))); in legalizeMov()
1946 llvm::cast<ConstantInteger32>( in legalizeMov()
2019 llvm::cast<ConstantInteger32>( in legalizeMov()
2023 llvm::cast<ConstantInteger32>( in legalizeMov()
[all …]
DIceTargetLoweringX8632.cpp647 if (auto *Integer = llvm::dyn_cast<ConstantInteger32>(Opnd)) in getConstantMemoryOrder()
1223 auto *ConstInt = llvm::dyn_cast<ConstantInteger32>( in loOperand()
1249 auto *ConstInt = llvm::dyn_cast<ConstantInteger32>( in hiOperand()
1258 } else if (auto *IntOffset = llvm::dyn_cast<ConstantInteger32>(Offset)) { in hiOperand()
1319 llvm::dyn_cast<ConstantInteger32>(TotalSize)) { in lowerAlloca()
1527 if (auto *ConstantShiftAmount = llvm::dyn_cast<ConstantInteger32>(Src1Lo)) { in lowerShift64()
2041 Const != nullptr && (llvm::isa<ConstantInteger32>(Const) || in lowerArithmetic()
2076 if (auto *C = llvm::dyn_cast<ConstantInteger32>(Src1)) { in lowerArithmetic()
2087 } else if (auto *ImmConst = llvm::dyn_cast<ConstantInteger32>(Src1)) { in lowerArithmetic()
2102 if (!llvm::isa<ConstantInteger32>(Src1) && in lowerArithmetic()
[all …]
DIceTargetLoweringX8664.cpp656 if (auto *Integer = llvm::dyn_cast<ConstantInteger32>(Opnd)) in getConstantMemoryOrder()
1229 llvm::dyn_cast<ConstantInteger32>(TotalSize)) { in lowerAlloca()
1450 if (auto *ConstantShiftAmount = llvm::dyn_cast<ConstantInteger32>(Src1Lo)) { in lowerShift64()
1841 Const != nullptr && (llvm::isa<ConstantInteger32>(Const) || in lowerArithmetic()
1876 if (auto *C = llvm::dyn_cast<ConstantInteger32>(Src1)) { in lowerArithmetic()
1887 } else if (auto *ImmConst = llvm::dyn_cast<ConstantInteger32>(Src1)) { in lowerArithmetic()
1902 if (!llvm::isa<ConstantInteger32>(Src1) && in lowerArithmetic()
1910 if (!llvm::isa<ConstantInteger32>(Src1) && in lowerArithmetic()
1918 if (!llvm::isa<ConstantInteger32>(Src1) && in lowerArithmetic()
1963 if (auto *C = llvm::dyn_cast<ConstantInteger32>(Src1)) { in lowerArithmetic()
[all …]
DIceCfg.cpp839 llvm::dyn_cast<ConstantInteger32>(Alloca->getSizeInBytes()); in sortAndCombineAllocas()
1032 auto *Src1Imm = llvm::dyn_cast<ConstantInteger32>(Arith->getSrc(1)); in rematerializeArithmetic()
1178 if (llvm::cast<ConstantInteger32>(I->getSrc(2))->getValue() != in findAllInserts()
1228 llvm::cast<ConstantInteger32>(Insert.getSrc(2))->getValue(); in insertsLastElement()
1402 auto *Index = llvm::cast<ConstantInteger32>(Extracts[Pos]->getSrc(1)); in materializeVectorShuffles()
1406 ShuffleVector->addIndex(llvm::cast<ConstantInteger32>( in materializeVectorShuffles()
DIceAssemblerMIPS32.cpp242 } else if (auto *C32 = llvm::dyn_cast<ConstantInteger32>(OpImm)) { in emitRtRsImm16Rel()
673 } else if (auto *C32 = llvm::dyn_cast<ConstantInteger32>(OpImm)) { in lui()
693 } else if (auto *C32 = llvm::dyn_cast<ConstantInteger32>(OpOff)) { in ldc1()
755 } else if (auto *C32 = llvm::dyn_cast<ConstantInteger32>(OpOff)) { in lwc1()
1081 } else if (auto *C32 = llvm::dyn_cast<ConstantInteger32>(OpOff)) { in sdc1()
1137 } else if (auto *C32 = llvm::dyn_cast<ConstantInteger32>(OpOff)) { in swc1()
DIceGlobalContext.cpp207 TypePool<IceType_i1, int8_t, ConstantInteger32> Integers1;
208 TypePool<IceType_i8, int8_t, ConstantInteger32> Integers8;
209 TypePool<IceType_i16, int16_t, ConstantInteger32> Integers16;
210 TypePool<IceType_i32, int32_t, ConstantInteger32> Integers32;
DIceInstARM32.h106 ConstantInteger32 *ImmOffset,
120 ConstantInteger32 *getOffset() const { return ImmOffset; } in getOffset()
152 ConstantInteger32 *ImmOffset, AddrMode Mode);
157 ConstantInteger32 *ImmOffset;
173 static OperandARM32ShAmtImm *create(Cfg *Func, ConstantInteger32 *ShAmt) { in create()
189 explicit OperandARM32ShAmtImm(ConstantInteger32 *SA);
191 const ConstantInteger32 *const ShAmt;
852 create(Cfg *Func, Variable *Dest, Variable *Src0, ConstantInteger32 *Src1) { in create()
DIceInstX8632.cpp560 } else if (const auto *Imm = llvm::dyn_cast<ConstantInteger32>(Target)) { in emitIAS()
587 if (const auto *CI = llvm::dyn_cast<ConstantInteger32>(CallTarget)) { in emit()
614 } else if (const auto *Imm = llvm::dyn_cast<ConstantInteger32>(CallTarget)) { in emitIAS()
697 } else if (const auto *Imm = llvm::dyn_cast<ConstantInteger32>(Src)) { in emitIASRegOpTyGPR()
721 } else if (const auto *Imm = llvm::dyn_cast<ConstantInteger32>(Src)) { in emitIASAddrOpTyGPR()
766 } else if (const auto *Imm = llvm::dyn_cast<ConstantInteger32>(Src)) { in emitIASGPRShift()
786 if (const auto *Imm = llvm::dyn_cast<ConstantInteger32>(Src2Op)) { in emitIASGPRShiftDouble()
812 } else if (const auto *Imm = llvm::dyn_cast<ConstantInteger32>(Src)) { in emitIASXmmShift()
880 AssemblerImmediate Imm(llvm::cast<ConstantInteger32>(Src1)->getValue()); in emitIASThreeOpImmOps()
2648 } else if (const auto *Const32 = llvm::dyn_cast<ConstantInteger32>(Src)) { in emitIAS()
[all …]
DIceInstX8664.cpp547 } else if (const auto *Imm = llvm::dyn_cast<ConstantInteger32>(Target)) { in emitIAS()
574 if (const auto *CI = llvm::dyn_cast<ConstantInteger32>(CallTarget)) { in emit()
601 } else if (const auto *Imm = llvm::dyn_cast<ConstantInteger32>(CallTarget)) { in emitIAS()
684 } else if (const auto *Imm = llvm::dyn_cast<ConstantInteger32>(Src)) { in emitIASRegOpTyGPR()
709 } else if (const auto *Imm = llvm::dyn_cast<ConstantInteger32>(Src)) { in emitIASAddrOpTyGPR()
755 } else if (const auto *Imm = llvm::dyn_cast<ConstantInteger32>(Src)) { in emitIASGPRShift()
778 if (const auto *Imm = llvm::dyn_cast<ConstantInteger32>(Src2Op)) { in emitIASGPRShiftDouble()
804 } else if (const auto *Imm = llvm::dyn_cast<ConstantInteger32>(Src)) { in emitIASXmmShift()
872 AssemblerImmediate Imm(llvm::cast<ConstantInteger32>(Src1)->getValue()); in emitIASThreeOpImmOps()
2575 } else if (const auto *Const32 = llvm::dyn_cast<ConstantInteger32>(Src)) { in emitIAS()
[all …]
DIceInst.h951 void addIndex(ConstantInteger32 *Index) { in addIndex()
956 ConstantInteger32 *getIndex(SizeT Pos) const { in getIndex()
1012 Func->deallocateArrayOf<ConstantInteger32 *>(Indexes); in destroy()
1016 ConstantInteger32 **Indexes;
DIceInstARM32.cpp321 ConstantInteger32 *ImmOffset, AddrMode Mode) in OperandARM32Mem()
344 OperandARM32ShAmtImm::OperandARM32ShAmtImm(ConstantInteger32 *SA) in OperandARM32ShAmtImm()
1037 if (const auto *Imm6 = llvm::dyn_cast<ConstantInteger32>(getSrc(1))) { in emitIAS()
1044 if (const auto *Imm6 = llvm::dyn_cast<ConstantInteger32>(getSrc(1))) { in emitIAS()
1072 const auto *Imm6 = llvm::cast<ConstantInteger32>(getSrc(1)); in emitIAS()
2059 } else if (const auto *C = llvm::dyn_cast<ConstantInteger32>(Src0)) { in emitIAS()
2161 if (llvm::isa<ConstantInteger32>(getCallTarget())) { in emit()
2184 if (llvm::isa<ConstantInteger32>(getCallTarget())) { in emitIAS()
3229 ConstantInteger32 *Offset = getOffset(); in emit()
DIceTargetLoweringARM32.h156 void emit(const ConstantInteger32 *C) const final;
194 llvm::cast<ConstantInteger32>(Ctx->getConstantInt32(ShAmtImm & 0x1F))); in shAmtImm()
953 void _vshl(Variable *Dest, Variable *Src0, ConstantInteger32 *Src1) { in _vshl()
958 ConstantInteger32 *Src1) { in _vshr()
DIceAssemblerARM32.h469 bool vmovqc(const Operand *OpQd, const ConstantInteger32 *Imm);
584 const ConstantInteger32 *OpQn);
587 const ConstantInteger32 *OpQn, InstARM32::FPSign Sign);
DIceInst.cpp308 if (auto *Constant = llvm::dyn_cast<ConstantInteger32>(Source)) { in InstBr()
575 Indexes = Func->allocateArrayOf<ConstantInteger32 *>(NumIndexes); in InstShuffleVector()
DIceOperand.h275 using ConstantInteger32 = ConstantPrimitive<int32_t, Operand::kConstInteger32>; variable
281 inline void ConstantInteger32::dump(const Cfg *, Ostream &Str) const { in dump()
DIceTargetLowering.h319 virtual void emit(const ConstantInteger32 *C) const = 0;
DIceAssemblerARM32.cpp383 if (const auto *Const = llvm::dyn_cast<ConstantInteger32>(Opnd)) { in encodeOperand()
403 } else if (const auto *IntConst = llvm::dyn_cast<ConstantInteger32>(Amt)) { in encodeOperand()
512 ConstantInteger32 *Offset = Mem->getOffset(); in encodeAddress()
624 const ConstantInteger32 *Imm6) { in encodeSIMDShiftImm6()
3025 bool AssemblerARM32::vmovqc(const Operand *OpQd, const ConstantInteger32 *Imm) { in vmovqc()
4025 const ConstantInteger32 *Imm6) { in vshlqc()
4040 const Operand *OpQm, const ConstantInteger32 *Imm6, in vshrqc()
DIceOperand.cpp599 template <> void ConstantInteger32::emit(TargetLowering *Target) const { in emit()
DIceELFObjectWriter.cpp565 template void ELFObjectWriter::writeConstantPool<ConstantInteger32>(Type Ty);
DWasmTranslator.cpp1369 if (auto *ConstBase = llvm::dyn_cast<ConstantInteger32>(Base)) { in sanitizeAddress()
1395 !llvm::isa<ConstantInteger32>(Base)) { in sanitizeAddress()
/third_party/skia/third_party/externals/swiftshader/src/Reactor/
DOptimizer.cpp220 uint32_t sizeInBytes = llvm::cast<Ice::ConstantInteger32>(alloca->getSizeInBytes())->getValue(); in performScalarReplacementOfAggregates()
237 auto *bytes = Ice::ConstantInteger32::create(context, Ice::IceType_i32, alignInBytes); in performScalarReplacementOfAggregates()
271 int32_t offset = llvm::cast<Ice::ConstantInteger32>(rhs)->getValue(); in performScalarReplacementOfAggregates()
725 return llvm::cast<Ice::ConstantInteger32>(storeSubVector->getSrc(2))->getValue() == in loadTypeMatchesStore()
726 llvm::cast<Ice::ConstantInteger32>(loadSubVector->getSrc(1))->getValue(); in loadTypeMatchesStore()
748 return llvm::cast<Ice::ConstantInteger32>(storeSubVector1->getSrc(2))->getValue() == in storeTypeMatchesStore()
749 llvm::cast<Ice::ConstantInteger32>(storeSubVector2->getSrc(2))->getValue(); in storeTypeMatchesStore()

12