Home
last modified time | relevance | path

Searched refs:IsLegal (Results 1 – 6 of 6) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DMetadata.cpp1228 auto IsLegal = [](const Instruction &I) -> bool { in getMergedProfMetadata() local
1242 if (AInstr && !IsLegal(*AInstr)) in getMergedProfMetadata()
1244 if (BInstr && !IsLegal(*BInstr)) in getMergedProfMetadata()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIFoldOperands.cpp774 bool IsLegal = OpToFold.isOperandLegal(*TII, *MI, OpNo); in tryAddToFoldList() local
775 if (!IsLegal && OpToFold.isImm()) { in tryAddToFoldList()
777 IsLegal = canUseImmWithOpSel(MI, OpNo, *ImmVal); in tryAddToFoldList()
780 if (!IsLegal) { in tryAddToFoldList()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.cpp1102 bool IsLegal = (Opcode == Instruction::Store && in getExpandCompressMemoryOpCost() local
1106 if (!IsLegal || CostKind != TTI::TCK_RecipThroughput) in getExpandCompressMemoryOpCost()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp3382 bool IsLegal = (C >> 12 == 0) || ((C & 0xFFFULL) == 0 && C >> 24 == 0); in isLegalArithImmed() local
3384 << " legal: " << (IsLegal ? "yes\n" : "no\n")); in isLegalArithImmed()
3385 return IsLegal; in isLegalArithImmed()
12096 bool IsLegal = false; in isFPImmLegal() local
12107 IsLegal = AArch64_AM::getFP64Imm(ImmInt) != -1 || Imm.isPosZero(); in isFPImmLegal()
12109 IsLegal = AArch64_AM::getFP32Imm(ImmInt) != -1 || Imm.isPosZero(); in isFPImmLegal()
12111 IsLegal = in isFPImmLegal()
12120 if (!IsLegal && (VT == MVT::f64 || VT == MVT::f32)) { in isFPImmLegal()
12131 IsLegal = Insn.size() <= Limit; in isFPImmLegal()
12134 LLVM_DEBUG(dbgs() << (IsLegal ? "Legal " : "Illegal ") << VT in isFPImmLegal()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp4260 bool IsLegal; member in llvm::slpvectorizer::BoUpSLP::ScalarsVectorizationLegality
4265 ScalarsVectorizationLegality(InstructionsState S, bool IsLegal, in ScalarsVectorizationLegality() argument
4268 : S(S), IsLegal(IsLegal), TryToFindDuplicates(TryToFindDuplicates), in ScalarsVectorizationLegality()
4270 assert((!IsLegal || (S.valid() && TryToFindDuplicates)) && in ScalarsVectorizationLegality()
4274 bool isLegal() const { return IsLegal; } in isLegal()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp11790 bool IsLegal = in lowerShuffleAsBitRotate() local
11792 if (!IsLegal && Subtarget.hasSSE3()) in lowerShuffleAsBitRotate()
11804 if (!IsLegal) { in lowerShuffleAsBitRotate()