[llvm] [DXIL] Add constraint specification and backend implementation of DXIL Ops (PR #97593)
Xiang Li via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 11 08:14:05 PDT 2024
================
@@ -213,11 +251,23 @@ static int getValidConstraintIndex(const OpCodeProperty *Prop,
namespace llvm {
namespace dxil {
-CallInst *DXILOpBuilder::createDXILOpCall(dxil::OpCode OpCode,
- VersionTuple SMVer,
- StringRef StageKind, Type *ReturnTy,
+CallInst *DXILOpBuilder::createDXILOpCall(dxil::OpCode OpCode, Type *ReturnTy,
Type *OverloadTy,
SmallVector<Value *> Args) {
+
+ std::string TTStr = M.getTargetTriple();
+ // No extra checks need be performed to verify that the Triple is
+ // well-formed or the target is supported since these checks would have
+ // been done at the time the module M is constructed in the earlier stages of
+ // compilation.
+ auto Major = Triple(TTStr).getOSVersion().getMajor();
----------------
python3kgae wrote:
Got it.
https://github.com/llvm/llvm-project/pull/97593
More information about the llvm-commits
mailing list