LLVM: lib/Target/SPIRV/SPIRVInlineAsmLowering.cpp Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

17#include "llvm/IR/IntrinsicsSPIRV.h"

18

19using namespace llvm;

20

23

25 Value *Val, StringRef Constraint, std::vector &Ops,

27 Value *ValOp = nullptr;

29 ValOp = Val;

32 return true;

34 if (II->getIntrinsicID() == Intrinsic::spv_track_constant) {

36 ValOp = II->getOperand(0);

39 return true;

40 }

41 }

42 }

44 ValOp, Constraint, Ops, MIRBuilder)

45 : false;

46}

const AbstractManglingParser< Derived, Alloc >::OperatorInfo AbstractManglingParser< Derived, Alloc >::Ops[]

uint64_t IntrinsicInst * II

ConstantFP - Floating Point Values [float, double].

InlineAsmLowering(const TargetLowering *TLI)

virtual bool lowerAsmOperandForConstraint(Value *Val, StringRef Constraint, std::vector< MachineOperand > &Ops, MachineIRBuilder &MIRBuilder) const

Lower the specified operand into the Ops vector.

Helper class to build MachineInstr.

static MachineOperand CreateFPImm(const ConstantFP *CFP)

SPIRVInlineAsmLowering(const SPIRVTargetLowering &TLI)

Definition SPIRVInlineAsmLowering.cpp:21

bool lowerAsmOperandForConstraint(Value *Val, StringRef Constraint, std::vector< MachineOperand > &Ops, MachineIRBuilder &MIRBuilder) const override

Lower the specified operand into the Ops vector.

Definition SPIRVInlineAsmLowering.cpp:24

StringRef - Represent a constant reference to a string, i.e.

LLVM Value Representation.

This is an optimization pass for GlobalISel generic memory operations.

decltype(auto) dyn_cast(const From &Val)

dyn_cast - Return the argument parameter cast to the specified type.

bool isa(const From &Val)

isa - Return true if the parameter to the template is an instance of one of the template type argu...