Home
last modified time | relevance | path

Searched refs:InlineAsm (Results 1 – 25 of 105) sorted by relevance

12345

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DInlineAsm.cpp30 InlineAsm::InlineAsm(FunctionType *FTy, const std::string &asmString, in InlineAsm() function in InlineAsm
42 InlineAsm *InlineAsm::get(FunctionType *FTy, StringRef AsmString, in get()
51 void InlineAsm::destroyConstant() { in destroyConstant()
56 FunctionType *InlineAsm::getFunctionType() const { in getFunctionType()
63 bool InlineAsm::ConstraintInfo::Parse(StringRef Str, in Parse()
64 InlineAsm::ConstraintInfoVector &ConstraintsSoFar) { in Parse()
159 InlineAsm::SubConstraintInfo &scInfo = in Parse()
206 void InlineAsm::ConstraintInfo::selectAlternative(unsigned index) { in selectAlternative()
209 InlineAsm::SubConstraintInfo &scInfo = in selectAlternative()
216 InlineAsm::ConstraintInfoVector
[all …]
DConstantsContext.h355 template <> struct ConstantInfo<InlineAsm> {
418 InlineAsm::AsmDialect AsmDialect;
422 InlineAsm::AsmDialect AsmDialect)
427 InlineAsmKeyType(const InlineAsm *Asm, SmallVectorImpl<Constant *> &)
439 bool operator==(const InlineAsm *Asm) const {
453 using TypeClass = ConstantInfo<InlineAsm>::TypeClass;
455 InlineAsm *create(TypeClass *Ty) const {
457 return new InlineAsm(FTy, AsmString, Constraints, HasSideEffects,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Sparc/
DSparcISelDAGToDAG.cpp180 if (i < InlineAsm::Op_FirstOperand) in tryInlineAsm()
185 Kind = InlineAsm::getKind(Flag); in tryInlineAsm()
194 if (Kind == InlineAsm::Kind_Imm) { in tryInlineAsm()
200 unsigned NumRegs = InlineAsm::getNumOperandRegisters(Flag); in tryInlineAsm()
208 if (Changed && InlineAsm::isUseOperandTiedToDef(Flag, DefIdx)) in tryInlineAsm()
211 if (Kind != InlineAsm::Kind_RegUse && Kind != InlineAsm::Kind_RegDef in tryInlineAsm()
212 && Kind != InlineAsm::Kind_RegDefEarlyClobber) in tryInlineAsm()
216 bool HasRC = InlineAsm::hasRegClassConstraint(Flag, RC); in tryInlineAsm()
229 if (Kind == InlineAsm::Kind_RegDef || in tryInlineAsm()
230 Kind == InlineAsm::Kind_RegDefEarlyClobber) { in tryInlineAsm()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DMachineInstr.cpp770 unsigned ExtraInfo = getOperand(InlineAsm::MIOp_ExtraInfo).getImm(); in isStackAligningInlineAsm()
771 if (ExtraInfo & InlineAsm::Extra_IsAlignStack) in isStackAligningInlineAsm()
777 InlineAsm::AsmDialect MachineInstr::getInlineAsmDialect() const { in getInlineAsmDialect()
779 unsigned ExtraInfo = getOperand(InlineAsm::MIOp_ExtraInfo).getImm(); in getInlineAsmDialect()
780 return InlineAsm::AsmDialect((ExtraInfo & InlineAsm::Extra_AsmDialect) != 0); in getInlineAsmDialect()
789 if (OpIdx < InlineAsm::MIOp_FirstOperand) in findInlineAsmFlagIdx()
794 for (unsigned i = InlineAsm::MIOp_FirstOperand, e = getNumOperands(); i < e; in findInlineAsmFlagIdx()
800 NumOps = 1 + InlineAsm::getNumOperandRegisters(FlagMO.getImm()); in findInlineAsmFlagIdx()
857 if ((InlineAsm::getKind(Flag) == InlineAsm::Kind_RegUse || in getRegClassConstraint()
858 InlineAsm::getKind(Flag) == InlineAsm::Kind_RegDef || in getRegClassConstraint()
[all …]
DMachineFrameInfo.cpp206 unsigned ExtraInfo = MI.getOperand(InlineAsm::MIOp_ExtraInfo).getImm(); in computeMaxCallFrameSize()
207 if (ExtraInfo & InlineAsm::Extra_IsAlignStack) in computeMaxCallFrameSize()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DInlineAsm.h30 class InlineAsm final : public Value {
39 friend class ConstantUniqueMap<InlineAsm>;
47 InlineAsm(FunctionType *Ty, const std::string &AsmString,
56 InlineAsm(const InlineAsm &) = delete;
57 InlineAsm &operator=(const InlineAsm &) = delete;
61 static InlineAsm *get(FunctionType *Ty, StringRef AsmString,
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/AsmPrinter/
DAsmPrinterInlineAsm.cpp112 InlineAsm::AsmDialect Dialect) const { in EmitInlineAsm()
158 if (Dialect == InlineAsm::AD_Intel) in EmitInlineAsm()
270 unsigned OpNo = InlineAsm::MIOp_FirstOperand; in EmitMSInlineAsmStr()
278 OpNo += InlineAsm::getNumOperandRegisters(OpFlags) + 1; in EmitMSInlineAsmStr()
291 if (InlineAsm::isMemKind(OpFlags)) { in EmitMSInlineAsmStr()
436 unsigned OpNo = InlineAsm::MIOp_FirstOperand; in EmitGCCInlineAsmStr()
444 OpNo += InlineAsm::getNumOperandRegisters(OpFlags) + 1; in EmitGCCInlineAsmStr()
470 } else if (InlineAsm::isMemKind(OpFlags)) { in EmitGCCInlineAsmStr()
544 if (MI->getInlineAsmDialect() == InlineAsm::AD_ATT) in EmitInlineAsm()
553 for (unsigned I = InlineAsm::MIOp_FirstOperand, NumOps = MI->getNumOperands(); in EmitInlineAsm()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
DFunctionComparator.h36 class InlineAsm; variable
332 int cmpInlineAsm(const InlineAsm *L, const InlineAsm *R) const;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DInstrEmitter.cpp1059 SDValue AsmStrV = Node->getOperand(InlineAsm::Op_AsmString); in EmitSpecialNode()
1066 cast<ConstantSDNode>(Node->getOperand(InlineAsm::Op_ExtraInfo))-> in EmitSpecialNode()
1077 for (unsigned i = InlineAsm::Op_FirstOperand; i != NumOps;) { in EmitSpecialNode()
1080 const unsigned NumVals = InlineAsm::getNumOperandRegisters(Flags); in EmitSpecialNode()
1086 switch (InlineAsm::getKind(Flags)) { in EmitSpecialNode()
1088 case InlineAsm::Kind_RegDef: in EmitSpecialNode()
1099 case InlineAsm::Kind_RegDefEarlyClobber: in EmitSpecialNode()
1100 case InlineAsm::Kind_Clobber: in EmitSpecialNode()
1109 case InlineAsm::Kind_RegUse: // Use of register. in EmitSpecialNode()
1110 case InlineAsm::Kind_Imm: // Immediate. in EmitSpecialNode()
[all …]
DScheduleDAGFast.cpp489 for (unsigned i = InlineAsm::Op_FirstOperand; i != NumOps;) { in DelayForLiveRegsBottomUp()
492 unsigned NumVals = InlineAsm::getNumOperandRegisters(Flags); in DelayForLiveRegsBottomUp()
495 if (InlineAsm::isRegDefKind(Flags) || in DelayForLiveRegsBottomUp()
496 InlineAsm::isRegDefEarlyClobberKind(Flags) || in DelayForLiveRegsBottomUp()
497 InlineAsm::isClobberKind(Flags)) { in DelayForLiveRegsBottomUp()
DSelectionDAGBuilder.cpp350 if (isa<InlineAsm>(CI->getCalledValue())) in diagnosePossiblyInvalidConstraint()
952 unsigned Flag = InlineAsm::getFlagWord(Code, Regs.size()); in AddInlineAsmOperands()
954 Flag = InlineAsm::getFlagWordForMatchingOp(Flag, MatchingIdx); in AddInlineAsmOperands()
963 Flag = InlineAsm::getFlagWordForRegClass(Flag, RC->getID()); in AddInlineAsmOperands()
969 if (Code == InlineAsm::Kind_Clobber) { in AddInlineAsmOperands()
2787 if (isa<InlineAsm>(Callee)) in visitInvoke()
2865 assert(isa<InlineAsm>(I.getCalledValue()) && in visitCallBr()
7598 if (isa<InlineAsm>(I.getCalledValue())) { in visitCall()
7979 if ((OpInfo.Type == InlineAsm::isOutput || in GetRegistersForValue()
7980 OpInfo.Type == InlineAsm::isInput) && in GetRegistersForValue()
[all …]
DSelectionDAGISel.cpp2054 Ops.push_back(InOps[InlineAsm::Op_InputChain]); // 0 in SelectInlineAsmMemoryOperands()
2055 Ops.push_back(InOps[InlineAsm::Op_AsmString]); // 1 in SelectInlineAsmMemoryOperands()
2056 Ops.push_back(InOps[InlineAsm::Op_MDNode]); // 2, !srcloc in SelectInlineAsmMemoryOperands()
2057 Ops.push_back(InOps[InlineAsm::Op_ExtraInfo]); // 3 (SideEffect, AlignStack) in SelectInlineAsmMemoryOperands()
2059 unsigned i = InlineAsm::Op_FirstOperand, e = InOps.size(); in SelectInlineAsmMemoryOperands()
2065 if (!InlineAsm::isMemKind(Flags)) { in SelectInlineAsmMemoryOperands()
2068 InOps.begin()+i+InlineAsm::getNumOperandRegisters(Flags) + 1); in SelectInlineAsmMemoryOperands()
2069 i += InlineAsm::getNumOperandRegisters(Flags) + 1; in SelectInlineAsmMemoryOperands()
2071 assert(InlineAsm::getNumOperandRegisters(Flags) == 1 && in SelectInlineAsmMemoryOperands()
2075 if (InlineAsm::isUseOperandTiedToDef(Flags, TiedToOperand)) { in SelectInlineAsmMemoryOperands()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86AsmPrinter.cpp205 const bool IsATT = MI->getInlineAsmDialect() == InlineAsm::AD_ATT; in PrintOperand()
224 case InlineAsm::AD_ATT: in PrintOperand()
227 case InlineAsm::AD_Intel: in PrintOperand()
250 if (MI->getInlineAsmDialect() == InlineAsm::AD_ATT) in PrintModifiedOperand()
555 if (MI->getInlineAsmDialect() == InlineAsm::AD_Intel) { in PrintAsmMemoryOperand()
562 if (MI->getInlineAsmDialect() == InlineAsm::AD_Intel) { in PrintAsmMemoryOperand()
570 if (MI->getInlineAsmDialect() == InlineAsm::AD_Intel) { in PrintAsmMemoryOperand()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMISelLowering.h447 return InlineAsm::Constraint_Q; in getInlineAsmMemConstraint()
449 return InlineAsm::Constraint_o; in getInlineAsmMemConstraint()
456 return InlineAsm::Constraint_Um; in getInlineAsmMemConstraint()
458 return InlineAsm::Constraint_Un; in getInlineAsmMemConstraint()
460 return InlineAsm::Constraint_Uq; in getInlineAsmMemConstraint()
462 return InlineAsm::Constraint_Us; in getInlineAsmMemConstraint()
464 return InlineAsm::Constraint_Ut; in getInlineAsmMemConstraint()
466 return InlineAsm::Constraint_Uv; in getInlineAsmMemConstraint()
468 return InlineAsm::Constraint_Uy; in getInlineAsmMemConstraint()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
DModuleSymbolTable.cpp73 StringRef InlineAsm = M.getModuleInlineAsm(); in initializeRecordStreamer() local
74 if (InlineAsm.empty()) in initializeRecordStreamer()
107 std::unique_ptr<MemoryBuffer> Buffer(MemoryBuffer::getMemBuffer(InlineAsm)); in initializeRecordStreamer()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
DMipsISelDAGToDAG.cpp317 case InlineAsm::Constraint_m: in SelectInlineAsmMemoryOperand()
318 case InlineAsm::Constraint_R: in SelectInlineAsmMemoryOperand()
319 case InlineAsm::Constraint_ZC: in SelectInlineAsmMemoryOperand()
DMipsSERegisterInfo.cpp104 unsigned ConstraintID = InlineAsm::getMemoryConstraintID(MO.getImm()); in getLoadStoreOffsetSizeInBits()
106 case InlineAsm::Constraint_ZC: { in getLoadStoreOffsetSizeInBits()
DMips16HardFloat.cpp52 InlineAsm *IA = InlineAsm::get(AsmFTy, AsmText, "", true, in EmitInlineAsm()
53 /* IsAlignStack */ false, InlineAsm::AD_ATT); in EmitInlineAsm()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DMachineInstr.h781 unsigned ExtraInfo = getOperand(InlineAsm::MIOp_ExtraInfo).getImm();
782 if (ExtraInfo & InlineAsm::Extra_IsConvergent)
858 unsigned ExtraInfo = getOperand(InlineAsm::MIOp_ExtraInfo).getImm();
859 if (ExtraInfo & InlineAsm::Extra_MayLoad)
871 unsigned ExtraInfo = getOperand(InlineAsm::MIOp_ExtraInfo).getImm();
872 if (ExtraInfo & InlineAsm::Extra_MayStore)
1093 return isInlineAsm() && getInlineAsmDialect() == InlineAsm::AD_Intel;
1097 InlineAsm::AsmDialect getInlineAsmDialect() const;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZISelLowering.h460 return InlineAsm::Constraint_o; in getInlineAsmMemConstraint()
462 return InlineAsm::Constraint_Q; in getInlineAsmMemConstraint()
464 return InlineAsm::Constraint_R; in getInlineAsmMemConstraint()
466 return InlineAsm::Constraint_S; in getInlineAsmMemConstraint()
468 return InlineAsm::Constraint_T; in getInlineAsmMemConstraint()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/
DAVRAsmPrinter.cpp105 unsigned NumOpRegs = InlineAsm::getNumOperandRegisters(OpFlags); in PrintAsmOperand()
162 unsigned NumOpRegs = InlineAsm::getNumOperandRegisters(OpFlags); in PrintAsmMemoryOperand()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCTargetTransformInfo.cpp222 auto asmClobbersCTR = [](InlineAsm *IA) { in mightUseCTR()
223 InlineAsm::ConstraintInfoVector CIV = IA->ParseConstraints(); in mightUseCTR()
225 InlineAsm::ConstraintInfo &C = CIV[i]; in mightUseCTR()
226 if (C.Type != InlineAsm::isInput) in mightUseCTR()
267 if (InlineAsm *IA = dyn_cast<InlineAsm>(CI->getCalledValue())) { in mightUseCTR()
DPPCISelLowering.h824 return InlineAsm::Constraint_es; in getInlineAsmMemConstraint()
826 return InlineAsm::Constraint_o; in getInlineAsmMemConstraint()
828 return InlineAsm::Constraint_Q; in getInlineAsmMemConstraint()
830 return InlineAsm::Constraint_Z; in getInlineAsmMemConstraint()
832 return InlineAsm::Constraint_Zy; in getInlineAsmMemConstraint()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DFunctionComparator.cpp693 int FunctionComparator::cmpInlineAsm(const InlineAsm *L, in cmpInlineAsm()
694 const InlineAsm *R) const { in cmpInlineAsm()
745 const InlineAsm *InlineAsmL = dyn_cast<InlineAsm>(L); in cmpValues()
746 const InlineAsm *InlineAsmR = dyn_cast<InlineAsm>(R); in cmpValues()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/
DRISCVISelDAGToDAG.cpp176 case InlineAsm::Constraint_m: in SelectInlineAsmMemoryOperand()
181 case InlineAsm::Constraint_A: in SelectInlineAsmMemoryOperand()

12345