@@ -52,8 +52,6 @@ class SpirvBuilder {
5252public:
5353 SpirvBuilder (ASTContext &ac, SpirvContext &c, const SpirvCodeGenOptions &,
5454 FeatureManager &featureMgr);
55- SpirvBuilder (SpirvContext &c, const SpirvCodeGenOptions &,
56- FeatureManager &featureMgr);
5755 ~SpirvBuilder () = default ;
5856
5957 // Forbid copy construction and assignment
@@ -74,9 +72,6 @@ class SpirvBuilder {
7472 SpirvFunction *createSpirvFunction (QualType returnType, SourceLocation,
7573 llvm::StringRef name, bool isPrecise,
7674 bool isNoInline = false );
77- SpirvFunction *createSpirvFunction (const SpirvType *returnType,
78- SourceLocation, llvm::StringRef name,
79- bool isPrecise, bool isNoInline = false );
8075
8176 // / \brief Begins building a SPIR-V function by allocating a SpirvFunction
8277 // / object. Returns the pointer for the function on success. Returns nullptr
@@ -87,10 +82,6 @@ class SpirvBuilder {
8782 llvm::StringRef name = " " ,
8883 bool isPrecise = false , bool isNoInline = false ,
8984 SpirvFunction *func = nullptr );
90- SpirvFunction *beginFunction (const SpirvType *returnType, SourceLocation,
91- llvm::StringRef name = " " ,
92- bool isPrecise = false , bool isNoInline = false ,
93- SpirvFunction *func = nullptr );
9485
9586 // / \brief Creates and registers a function parameter of the given pointer
9687 // / type in the current function and returns its pointer.
@@ -105,9 +96,6 @@ class SpirvBuilder {
10596 SpirvVariable *addFnVar (QualType valueType, SourceLocation,
10697 llvm::StringRef name = " " , bool isPrecise = false ,
10798 SpirvInstruction *init = nullptr );
108- SpirvVariable *addFnVar (const spirv::SpirvType *valueType, SourceLocation,
109- llvm::StringRef name = " " , bool isPrecise = false ,
110- SpirvInstruction *init = nullptr );
11199
112100 // / \brief Ends building of the current function. All basic blocks constructed
113101 // / from the beginning or after ending the previous function will be collected
@@ -238,9 +226,6 @@ class SpirvBuilder {
238226 SpirvBinaryOp *createBinaryOp (spv::Op op, QualType resultType,
239227 SpirvInstruction *lhs, SpirvInstruction *rhs,
240228 SourceLocation loc, SourceRange range = {});
241- SpirvBinaryOp *createBinaryOp (spv::Op op, const SpirvType *resultType,
242- SpirvInstruction *lhs, SpirvInstruction *rhs,
243- SourceLocation loc, SourceRange range = {});
244229
245230 SpirvSpecConstantBinaryOp *createSpecConstantBinaryOp (spv::Op op,
246231 QualType resultType,
@@ -620,10 +605,6 @@ class SpirvBuilder {
620605 SpirvVariable *addStageIOVar (QualType type, spv::StorageClass storageClass,
621606 llvm::StringRef name, bool isPrecise,
622607 SourceLocation loc);
623- SpirvVariable *addStageIOVar (const SpirvType *type,
624- spv::StorageClass storageClass,
625- llvm::StringRef name, bool isPrecise,
626- SourceLocation loc);
627608
628609 // / \brief Adds a stage builtin variable whose value is of the given type.
629610 // /
@@ -633,10 +614,6 @@ class SpirvBuilder {
633614 spv::StorageClass storageClass,
634615 spv::BuiltIn, bool isPrecise,
635616 SourceLocation loc);
636- SpirvVariable *addStageBuiltinVar (const SpirvType *type,
637- spv::StorageClass storageClass,
638- spv::BuiltIn, bool isPrecise,
639- SourceLocation loc);
640617
641618 // / \brief Adds a module variable. This variable should not have the Function
642619 // / storage class.
@@ -741,12 +718,8 @@ class SpirvBuilder {
741718 // / and add the context to the list of constants in the module.
742719 SpirvConstant *getConstantInt (QualType type, llvm::APInt value,
743720 bool specConst = false );
744- SpirvConstant *getConstantInt (const SpirvType *type, llvm::APInt value,
745- bool specConst = false );
746721 SpirvConstant *getConstantFloat (QualType type, llvm::APFloat value,
747722 bool specConst = false );
748- SpirvConstant *getConstantFloat (const SpirvType *type, llvm::APFloat value,
749- bool specConst = false );
750723 SpirvConstant *getConstantBool (bool value, bool specConst = false );
751724 SpirvConstant *
752725 getConstantComposite (QualType compositeType,
@@ -763,7 +736,6 @@ class SpirvBuilder {
763736
764737public:
765738 std::vector<uint32_t > takeModule ();
766- std::vector<uint32_t > takeModuleForDxilToSpv ();
767739
768740protected:
769741 // / Only friend classes are allowed to add capability/extension to the module
@@ -824,7 +796,7 @@ class SpirvBuilder {
824796 SpirvInstruction *var);
825797
826798private:
827- ASTContext * astContext;
799+ ASTContext & astContext;
828800 SpirvContext &context; // /< From which we allocate various SPIR-V object
829801 FeatureManager &featureManager;
830802
0 commit comments