Home
last modified time | relevance | path

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

12

/external/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 …]
DIceInstX8632.cpp155 } else if (const auto *CI = llvm::dyn_cast<ConstantInteger32>(getOffset())) { in emit()
229 } else if (const auto *CI = llvm::dyn_cast<ConstantInteger32>(getOffset())) { in dump()
275 if (const auto *CI = llvm::dyn_cast<ConstantInteger32>(getOffset())) { in toAsmAddress()
DIceInstX8664.cpp124 } else if (const auto *CI = llvm::dyn_cast<ConstantInteger32>(Offset)) { in emit()
226 } else if (const auto *CI = llvm::dyn_cast<ConstantInteger32>(Offset)) { in dump()
262 if (const auto *CI = llvm::dyn_cast<ConstantInteger32>(getOffset())) { in toAsmAddress()
DIceInstMIPS32.cpp563 if (llvm::isa<ConstantInteger32>(getCallTarget())) { in emit()
586 if (llvm::isa<ConstantInteger32>(getCallTarget())) { in emitIAS()
914 ConstantInteger32 *Offset = llvm::cast<ConstantInteger32>(Mem->getOffset()); in emitIAS()
922 ConstantInteger32 *Offset = llvm::cast<ConstantInteger32>(Mem->getOffset()); in emitIAS()
1103 ConstantInteger32 *Offset = llvm::cast<ConstantInteger32>(Mem->getOffset()); in emitIAS()
1192 ConstantInteger32 *Offset = llvm::cast<ConstantInteger32>(Mem->getOffset()); in emitIAS()
DIceTargetLoweringARM32.cpp222 if (auto *Const = llvm::dyn_cast_or_null<ConstantInteger32>(Op)) { in isGuaranteedNonzeroInt()
553 if (auto *C = llvm::dyn_cast<ConstantInteger32>(Src1)) { in genTargetHelperCallFor()
1802 llvm::cast<ConstantInteger32>(Target->Ctx->getConstantInt32(Offset)), in createMemOperand()
1821 llvm::cast<ConstantInteger32>(Target->Ctx->getConstantInt32(OffsetDiff)), in createMemOperand()
2149 ConstantInteger32 *Offset = Mem->getOffset(); in hiOperand()
2166 llvm::cast<ConstantInteger32>(Ctx->getConstantInt32(NextOffsetVal)); in hiOperand()
2240 llvm::dyn_cast<ConstantInteger32>(TotalSize)) { in lowerAlloca()
2497 class Int32Operands : public NumericOperands<ConstantInteger32> {
2569 if (auto *C = llvm::dyn_cast<ConstantInteger32>(Src1)) { in preambleDivRem()
2971 Func, llvm::cast<ConstantInteger32>( in createShiftedOperand()
[all …]
DIceTargetLoweringMIPS32.cpp259 if (auto *Integer = llvm::dyn_cast<ConstantInteger32>(Opnd)) in getConstantMemoryOrder()
695 llvm::cast<ConstantInteger32>(Intrinsic->getArg(0))->getValue()); in genTargetHelperCallFor()
1132 llvm::cast<ConstantInteger32>(Ctx->getConstantInt32(Offset))); in formMemoryOperand()
1653 llvm::cast<ConstantInteger32>(Ctx->getConstantInt32(StackOffset))); in addProlog()
1776 llvm::cast<ConstantInteger32>(Ctx->getConstantInt32(StackOffset))); in addEpilog()
1834 llvm::cast<ConstantInteger32>(Target->Ctx->getConstantInt32(Offset))); in legalizeMovFp()
1968 llvm::cast<ConstantInteger32>(Target->Ctx->getConstantInt32(Offset))); in legalizeMov()
1971 llvm::cast<ConstantInteger32>( in legalizeMov()
2044 llvm::cast<ConstantInteger32>( in legalizeMov()
2048 llvm::cast<ConstantInteger32>( in legalizeMov()
[all …]
DIceTargetLoweringX86BaseImpl.h62 using IceType = ConstantInteger32;
72 using IceType = ConstantInteger32;
82 using IceType = ConstantInteger32;
792 if (auto *Integer = llvm::dyn_cast<ConstantInteger32>(Opnd))
1441 auto *ConstInt = llvm::dyn_cast<ConstantInteger32>(
1470 auto *ConstInt = llvm::dyn_cast<ConstantInteger32>(
1479 } else if (auto *IntOffset = llvm::dyn_cast<ConstantInteger32>(Offset)) {
1543 llvm::dyn_cast<ConstantInteger32>(TotalSize)) {
1772 if (auto *ConstantShiftAmount = llvm::dyn_cast<ConstantInteger32>(Src1Lo)) {
2288 Const != nullptr && (llvm::isa<ConstantInteger32>(Const) ||
[all …]
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;
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()
DIceInstARM32.h106 ConstantInteger32 *ImmOffset,
121 ConstantInteger32 *getOffset() const { return ImmOffset; } in getOffset()
153 ConstantInteger32 *ImmOffset, AddrMode Mode);
158 ConstantInteger32 *ImmOffset;
174 static OperandARM32ShAmtImm *create(Cfg *Func, ConstantInteger32 *ShAmt) { in create()
190 explicit OperandARM32ShAmtImm(ConstantInteger32 *SA);
192 const ConstantInteger32 *const ShAmt;
853 create(Cfg *Func, Variable *Dest, Variable *Src0, ConstantInteger32 *Src1) { in create()
DIceInst.h1002 void addIndex(ConstantInteger32 *Index) { in addIndex()
1007 ConstantInteger32 *getIndex(SizeT Pos) const { in getIndex()
1063 Func->deallocateArrayOf<ConstantInteger32 *>(Indexes); in destroy()
1067 ConstantInteger32 **Indexes;
DIceAssemblerARM32.h473 bool vmovqc(const Operand *OpQd, const ConstantInteger32 *Imm);
588 const ConstantInteger32 *OpQn);
591 const ConstantInteger32 *OpQn, InstARM32::FPSign Sign);
DIceTargetLoweringARM32.h157 void emit(const ConstantInteger32 *C) const final;
195 llvm::cast<ConstantInteger32>(Ctx->getConstantInt32(ShAmtImm & 0x1F))); in shAmtImm()
954 void _vshl(Variable *Dest, Variable *Src0, ConstantInteger32 *Src1) { in _vshl()
959 ConstantInteger32 *Src1) { in _vshr()
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()
2134 } else if (const auto *C = llvm::dyn_cast<ConstantInteger32>(Src0)) { in emitIAS()
2236 if (llvm::isa<ConstantInteger32>(getCallTarget())) { in emit()
2259 if (llvm::isa<ConstantInteger32>(getCallTarget())) { in emitIAS()
3310 ConstantInteger32 *Offset = getOffset(); in emit()
DIceInstX86BaseImpl.h608 } else if (const auto *Imm = llvm::dyn_cast<ConstantInteger32>(Target)) { in emitIAS()
637 if (const auto *CI = llvm::dyn_cast<ConstantInteger32>(CallTarget)) { in emit()
665 } else if (const auto *Imm = llvm::dyn_cast<ConstantInteger32>(CallTarget)) { in emitIAS()
755 } else if (const auto *Imm = llvm::dyn_cast<ConstantInteger32>(Src)) { in emitIASRegOpTyGPR()
786 } else if (const auto *Imm = llvm::dyn_cast<ConstantInteger32>(Src)) { in emitIASAddrOpTyGPR()
841 } else if (const auto *Imm = llvm::dyn_cast<ConstantInteger32>(Src)) { in emitIASGPRShift()
866 if (const auto *Imm = llvm::dyn_cast<ConstantInteger32>(Src2Op)) { in emitIASGPRShiftDouble()
895 } else if (const auto *Imm = llvm::dyn_cast<ConstantInteger32>(Src)) { in emitIASXmmShift()
968 AssemblerImmediate Imm(llvm::cast<ConstantInteger32>(Src1)->getValue()); in emitIASThreeOpImmOps()
2929 } else if (const auto *Const32 = llvm::dyn_cast<ConstantInteger32>(Src)) { in emitIAS()
DIceOperand.h275 using ConstantInteger32 = ConstantPrimitive<int32_t, Operand::kConstInteger32>; variable
281 inline void ConstantInteger32::dump(const Cfg *, Ostream &Str) const { in dump()
DIceInst.cpp310 if (auto *Constant = llvm::dyn_cast<ConstantInteger32>(Source)) { in InstBr()
584 Indexes = Func->allocateArrayOf<ConstantInteger32 *>(NumIndexes); in InstShuffleVector()
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()
3027 bool AssemblerARM32::vmovqc(const Operand *OpQd, const ConstantInteger32 *Imm) { in vmovqc()
4027 const ConstantInteger32 *Imm6) { in vshlqc()
4042 const Operand *OpQm, const ConstantInteger32 *Imm6, in vshrqc()
DIceTargetLowering.h319 virtual void emit(const ConstantInteger32 *C) const = 0;
DIceOperand.cpp588 template <> void ConstantInteger32::emit(TargetLowering *Target) const { in emit()
DIceELFObjectWriter.cpp571 template void ELFObjectWriter::writeConstantPool<ConstantInteger32>(Type Ty);
DIceTargetLoweringX8664.cpp449 } else if (const auto *Imm = llvm::dyn_cast<ConstantInteger32>(Offset)) { in _sandbox_mem_reference()
DWasmTranslator.cpp1369 if (auto *ConstBase = llvm::dyn_cast<ConstantInteger32>(Base)) { in sanitizeAddress()
1395 !llvm::isa<ConstantInteger32>(Base)) { in sanitizeAddress()
/external/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()
718 return llvm::cast<Ice::ConstantInteger32>(storeSubVector->getSrc(2))->getValue() == in loadTypeMatchesStore()
719 llvm::cast<Ice::ConstantInteger32>(loadSubVector->getSrc(1))->getValue(); in loadTypeMatchesStore()
741 return llvm::cast<Ice::ConstantInteger32>(storeSubVector1->getSrc(2))->getValue() == in storeTypeMatchesStore()
742 llvm::cast<Ice::ConstantInteger32>(storeSubVector2->getSrc(2))->getValue(); in storeTypeMatchesStore()

12