HomeSort by: relevance | last modified time | path
    Searched refs:Cst (Results 1 - 25 of 31) sorted by relevancy

1 2

  /src/external/apache2/llvm/dist/llvm/include/llvm/MC/
MCValue.h 39 int64_t Cst = 0;
44 int64_t getConstant() const { return Cst; }
64 R.Cst = Val;
73 R.Cst = Val;
  /src/external/apache2/llvm/dist/llvm/tools/llvm-c-test/
echo.cpp 229 static LLVMValueRef clone_constant_impl(LLVMValueRef Cst, LLVMModuleRef M);
231 static LLVMValueRef clone_constant(LLVMValueRef Cst, LLVMModuleRef M) {
232 LLVMValueRef Ret = clone_constant_impl(Cst, M);
233 check_value_kind(Ret, LLVMGetValueKind(Cst));
237 static LLVMValueRef clone_constant_impl(LLVMValueRef Cst, LLVMModuleRef M) {
238 if (!LLVMIsAConstant(Cst))
242 if (LLVMIsAGlobalValue(Cst)) {
244 const char *Name = LLVMGetValueName2(Cst, &NameLen);
247 if (LLVMIsAFunction(Cst)) {
248 check_value_kind(Cst, LLVMFunctionValueKind)
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/
AArch64PromoteConstant.cpp 267 /// Check if the given use (Instruction + OpIdx) of Cst should be converted into
268 /// a load of a global variable initialized with Cst.
272 static bool shouldConvertUse(const Constant *Cst, const Instruction *Instr,
324 /// Check if the given Cst should be converted into
325 /// a load of a global variable initialized with Cst.
338 static bool shouldConvertImpl(const Constant *Cst) {
339 if (isa<const UndefValue>(Cst))
344 // E.g., when the type of Cst require more instructions than the
346 // instances of Cst.
349 if (Cst->isZeroValue()
    [all...]
AArch64StackTagging.cpp 149 uint64_t Cst = 0x0101010101010101UL;
152 Cst = (Cst >> LowBits) << LowBits;
155 Cst = (Cst << HighBits) >> HighBits;
157 ConstantInt::get(IRB.getInt64Ty(), Cst * V->getZExtValue());
  /src/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/GlobalISel/
Utils.h 308 int64_t Cst;
314 explicit RegOrConstant(int64_t Cst) : Cst(Cst), IsReg(false) {}
323 return Cst;
359 /// %cst = G_CONSTANT iN 4
360 /// %constant_splat = G_BUILD_VECTOR %cst, %cst, ..., %cst
CombinerHelper.h 295 /// Transform fp_instr(cst) to constant result of the fp operation.
297 Optional<APFloat> &Cst);
299 Optional<APFloat> &Cst);
MIPatternMatch.h 74 inline ConstantMatch m_ICst(int64_t &Cst) { return ConstantMatch(Cst); }
  /src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/GISel/
AArch64PostLegalizerLowering.cpp 410 auto Cst =
413 {MatchInfo.SrcOps[0], MatchInfo.SrcOps[1], Cst});
480 auto Cst = getAArch64VectorSplatScalar(*MI, MRI);
481 if (!Cst)
483 Cnt = *Cst;
635 auto Cst = MIB.buildConstant(MRI.cloneVirtualRegister(RHS.getReg()),
638 RHS.setReg(Cst->getOperand(0).getReg());
731 int64_t Cst = Splat->getCst();
732 return (Cst != 0 && Cst != -1)
    [all...]
AArch64PreLegalizerCombiner.cpp 115 /// %g = G_GLOBAL_VALUE @x -> %g = G_GLOBAL_VALUE @x + cst
149 auto Cst =
151 if (!Cst)
153 MinOffset = std::min(MinOffset, Cst->Value.getZExtValue());
AArch64PostLegalizerCombiner.cpp 57 auto Cst = getConstantVRegValWithLookThrough(Src2, MRI);
58 if (!Cst || Cst->Value != 0)
  /src/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/
CSEMIRBuilder.cpp 190 if (Optional<APInt> Cst = ConstantFoldBinOp(Opc, SrcOps[0].getReg(),
192 return buildConstant(DstOps[0], *Cst);
CombinerHelper.cpp 1636 Optional<APFloat> &Cst) {
1640 Cst = constantFoldFpUnary(MI.getOpcode(), DstTy, SrcReg, MRI);
1641 return Cst.hasValue();
1645 Optional<APFloat> &Cst) {
1646 assert(Cst.hasValue() && "Optional is unexpectedly empty!");
1649 auto *FPVal = ConstantFP::get(MF.getFunction().getContext(), *Cst);
2366 int64_t Cst;
2367 if (mi_match(LHS, MRI, m_GIntToPtr(m_ICst(Cst)))) {
2368 NewCst = Cst + *RHSCst;
3110 int64_t Cst, bool IsVector, bool IsFP)
    [all...]
IRTranslator.cpp 283 // Unless the value is a Constant => loadimm cst?
792 auto Cst = getOrCreateVReg(
794 Cst = MIB.buildZExtOrTrunc(PtrScalarTy, Cst).getReg(0);
795 auto Cmp = MIB.buildICmp(CmpInst::ICMP_UGT, LLT::scalar(1), Sub, Cst);
2088 ConstantInt *Cst = cast<ConstantInt>(CI.getArgOperand(1));
2091 ? Cst->isZero() ? TargetOpcode::G_CTTZ
2093 : Cst->isZero() ? TargetOpcode::G_CTLZ
MachineIRBuilder.cpp 204 auto Cst = buildConstant(ValueTy, Value);
205 return buildPtrAdd(Res, Op0, Cst.getReg(0));
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
Reassociate.cpp 1936 Constant *Cst = nullptr;
1940 Cst = Cst ? ConstantExpr::get(Opcode, C, Cst) : C;
1944 return Cst;
1949 if (Cst && Cst != ConstantExpr::getBinOpIdentity(Opcode, I->getType())) {
1950 if (Cst == ConstantExpr::getBinOpAbsorber(Opcode, I->getType()))
1951 return Cst;
1952 Ops.push_back(ValueEntry(0, Cst));
    [all...]
JumpThreading.cpp 1593 if (Constant *Cst = dyn_cast<Constant>(V)) {
1594 return Cst;
  /src/external/apache2/llvm/dist/llvm/lib/Target/Mips/
MipsISelLowering.h 458 SDValue Cst = DAG.getConstant(16, DL, MVT::i32);
459 SDValue Shift = DAG.getNode(ISD::SHL, DL, Ty, HigherPart, Cst);
462 SDValue Shift2 = DAG.getNode(ISD::SHL, DL, Ty, Add, Cst);
  /src/external/apache2/llvm/dist/llvm/lib/Target/M68k/
M68kISelDAGToDAG.cpp 412 if (ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(N))
413 if (foldOffsetIntoAddress(Cst->getSExtValue(), AM))
  /src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
R600ISelLowering.cpp 829 if(ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(Op)) {
830 return Cst->isNullValue();
2038 ConstantSDNode *Cst
2040 Consts.push_back(Cst->getZExtValue());
2045 ConstantSDNode *Cst = cast<ConstantSDNode>(CstOffset);
2046 Consts.push_back(Cst->getZExtValue());
AMDGPUISelDAGToDAG.cpp 3049 if (ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(Addr)) {
3050 IntPtr = CurDAG->getIntPtrConstant(Cst->getZExtValue() / 4, SDLoc(Addr),
  /src/external/apache2/llvm/dist/llvm/lib/Target/X86/
X86ISelDAGToDAG.cpp 2136 if (ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(N))
2137 if (!foldOffsetIntoAddress(Cst->getSExtValue(), AM))
3935 ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(N1);
3936 if (!Cst)
3939 int64_t Val = Cst->getSExtValue();
4008 unsigned ZExtWidth = Cst->getAPIntValue().getActiveBits();
4014 NeededMask &= ~Cst->getAPIntValue();
4866 ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(N1);
4867 if (!Cst)
4870 int64_t Val = Cst->getSExtValue()
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/CodeGen/
CodeGenPrepare.cpp 4177 // ext(and(opnd, cst)) --> and(ext(opnd), ext(cst))
4182 // ext(xor(opnd, cst)) --> xor(ext(opnd), ext(cst))
4184 const ConstantInt *Cst = dyn_cast<ConstantInt>(Inst->getOperand(1));
4186 if (Cst && !Cst->getValue().isAllOnesValue())
4190 // zext(shrl(opnd, cst)) --> shrl(zext(opnd), zext(cst))
4198 // and(ext(shl(opnd, cst)), cst) --> and(shl(ext(opnd), ext(cst)), cst
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
SelectionDAG.cpp 309 if (auto *Cst = dyn_cast<ConstantSDNode>(Op))
310 return Match(Cst);
325 auto *Cst = dyn_cast<ConstantSDNode>(Op.getOperand(i));
326 if (!Cst || Cst->getValueType(0) != SVT || !Match(Cst))
3195 const Constant *Cst = TLI->getTargetConstantFromLoad(LD);
3196 if (ISD::isNON_EXTLoad(LD) && Cst) {
3198 Type *CstTy = Cst->getType();
3203 if (const Constant *Splat = Cst->getSplatValue())
    [all...]
DAGCombiner.cpp 6857 ConstantSDNode *Cst = isConstOrConstSplat(Op.getOperand(1));
6858 return Cst && (Cst->getAPIntValue() == Imm);
8960 if (ConstantSDNode *Cst = isConstOrConstSplat(N2)) {
8964 if (Cst->getAPIntValue().uge(BitWidth)) {
8965 uint64_t RotAmt = Cst->getAPIntValue().urem(BitWidth);
8970 unsigned ShAmt = Cst->getZExtValue();
10515 // fold (zext (and/or/xor (shl/shr (load x), cst), cst)) ->
10516 // (and/or/xor (shl/shr (zextload x), (zext cst)), (zext cst)
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
InstCombineCasts.cpp 886 // Transform "trunc (shl X, cst)" -> "shl (trunc X), cst" so long as the
887 // dest type is native and cst < dest size.
913 ConstantInt *Cst;
914 if (match(Src, m_OneUse(m_ExtractElt(m_Value(VecOp), m_ConstantInt(Cst))))) {
922 uint64_t VecOpIdx = Cst->getZExtValue();
1123 // We can promote shl(x, cst) if we can promote x. Since shl overwrites the
1136 // We can promote lshr(x, cst) if we can promote x. This requires the

Completed in 65 milliseconds

1 2